Add "Archive on drawer"
This commit is contained in:
@@ -242,6 +242,7 @@ public class DrawerLayoutAdapter extends RecyclerListView.SelectionAdapter {
|
||||
int newChannelIcon;
|
||||
int contactsIcon;
|
||||
int callsIcon;
|
||||
int archiveIcon;
|
||||
int savedIcon;
|
||||
int settingsIcon;
|
||||
int inviteIcon;
|
||||
@@ -253,6 +254,7 @@ public class DrawerLayoutAdapter extends RecyclerListView.SelectionAdapter {
|
||||
//newChannelIcon = R.drawable.menu_channel_ny;
|
||||
contactsIcon = R.drawable.menu_contacts_ny;
|
||||
callsIcon = R.drawable.menu_calls_ny;
|
||||
archiveIcon = R.drawable.msg_archive;
|
||||
savedIcon = R.drawable.menu_bookmarks_ny;
|
||||
settingsIcon = R.drawable.menu_settings_ny;
|
||||
inviteIcon = R.drawable.menu_invite_ny;
|
||||
@@ -264,6 +266,7 @@ public class DrawerLayoutAdapter extends RecyclerListView.SelectionAdapter {
|
||||
//newChannelIcon = R.drawable.menu_broadcast_14;
|
||||
contactsIcon = R.drawable.menu_contacts_14;
|
||||
callsIcon = R.drawable.menu_calls_14;
|
||||
archiveIcon = R.drawable.msg_archive;
|
||||
savedIcon = R.drawable.menu_bookmarks_14;
|
||||
settingsIcon = R.drawable.menu_settings_14;
|
||||
inviteIcon = R.drawable.menu_secret_ny;
|
||||
@@ -275,6 +278,7 @@ public class DrawerLayoutAdapter extends RecyclerListView.SelectionAdapter {
|
||||
//newChannelIcon = R.drawable.menu_broadcast_hw;
|
||||
contactsIcon = R.drawable.menu_contacts_hw;
|
||||
callsIcon = R.drawable.menu_calls_hw;
|
||||
archiveIcon = R.drawable.msg_archive;
|
||||
savedIcon = R.drawable.menu_bookmarks_hw;
|
||||
settingsIcon = R.drawable.menu_settings_hw;
|
||||
inviteIcon = R.drawable.menu_invite_hw;
|
||||
@@ -286,6 +290,7 @@ public class DrawerLayoutAdapter extends RecyclerListView.SelectionAdapter {
|
||||
//newChannelIcon = R.drawable.menu_broadcast;
|
||||
contactsIcon = R.drawable.menu_contacts;
|
||||
callsIcon = R.drawable.menu_calls;
|
||||
archiveIcon = R.drawable.msg_archive;
|
||||
savedIcon = R.drawable.menu_saved;
|
||||
settingsIcon = R.drawable.menu_settings;
|
||||
inviteIcon = R.drawable.menu_invite;
|
||||
@@ -297,9 +302,8 @@ public class DrawerLayoutAdapter extends RecyclerListView.SelectionAdapter {
|
||||
//items.add(new Item(4, LocaleController.getString("NewChannel", R.string.NewChannel), newChannelIcon));
|
||||
items.add(new Item(6, LocaleController.getString("Contacts", R.string.Contacts), contactsIcon));
|
||||
items.add(new Item(10, LocaleController.getString("Calls", R.string.Calls), callsIcon));
|
||||
if (hasGps) {
|
||||
items.add(new Item(12, LocaleController.getString("PeopleNearby", R.string.PeopleNearby), peopleNearbyIcon));
|
||||
}
|
||||
if (hasGps) items.add(new Item(12, LocaleController.getString("PeopleNearby", R.string.PeopleNearby), peopleNearbyIcon));
|
||||
items.add(new Item(14, LocaleController.getString("ArchivedChats", R.string.ArchivedChats), archiveIcon));
|
||||
items.add(new Item(11, LocaleController.getString("SavedMessages", R.string.SavedMessages), savedIcon));
|
||||
items.add(new Item(8, LocaleController.getString("Settings", R.string.Settings), settingsIcon));
|
||||
items.add(null); // divider
|
||||
|
||||
@@ -625,6 +625,11 @@ public class LaunchActivity extends BasePermissionsActivity implements ActionBar
|
||||
} else if (id == 13) {
|
||||
Browser.openUrl(LaunchActivity.this, LocaleController.getString("TelegramFeaturesUrl", R.string.TelegramFeaturesUrl));
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
} else if (id == 14) {
|
||||
Bundle args = new Bundle();
|
||||
args.putInt("folderId", 1);
|
||||
presentFragment(new DialogsActivity(args));
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user