mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
Fix long press to open "All Chats: in forward and share
This commit is contained in:
parent
4da82b928c
commit
6cec982eee
|
@ -2099,6 +2099,15 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
|
||||||
actionBar.setTitle(LocaleController.getString("SelectChat", R.string.SelectChat));
|
actionBar.setTitle(LocaleController.getString("SelectChat", R.string.SelectChat));
|
||||||
}
|
}
|
||||||
actionBar.setBackgroundColor(Theme.getColor(Theme.key_actionBarDefault));
|
actionBar.setBackgroundColor(Theme.getColor(Theme.key_actionBarDefault));
|
||||||
|
if (NekoConfig.hideAllTab) {
|
||||||
|
actionBar.setOnLongClickListener(v -> {
|
||||||
|
if (NekoConfig.pressTitleToOpenAllChats && filterTabsView != null && filterTabsView.getCurrentTabId() != Integer.MAX_VALUE) {
|
||||||
|
filterTabsView.toggleAllTabs(true);
|
||||||
|
filterTabsView.selectFirstTab();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (searchString != null || folderId != 0) {
|
if (searchString != null || folderId != 0) {
|
||||||
actionBar.setBackButtonDrawable(backDrawable = new BackDrawable(false));
|
actionBar.setBackButtonDrawable(backDrawable = new BackDrawable(false));
|
||||||
|
@ -4135,7 +4144,7 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
|
||||||
filterTabsView.selectFirstTab();
|
filterTabsView.selectFirstTab();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!NekoConfig.pressTitleToOpenAllChats){
|
if (!NekoConfig.pressTitleToOpenAllChats && filterTabsView != null) {
|
||||||
// not hideAllTab OR hideAllTab but not pressTitleToOpenAllChats
|
// not hideAllTab OR hideAllTab but not pressTitleToOpenAllChats
|
||||||
filterTabsView.toggleAllTabs(true);
|
filterTabsView.toggleAllTabs(true);
|
||||||
filterTabsView.selectFirstTab();
|
filterTabsView.selectFirstTab();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user