1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

allow adding to tabs when searching

This commit is contained in:
luvletter2333 2022-03-15 15:43:31 +08:00
parent 7a29fe9d2d
commit de17e63f2a
No known key found for this signature in database
GPG Key ID: A26A8880836E1978

View File

@ -6196,7 +6196,7 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
} else { } else {
removeFromFolderItem.setVisibility(View.VISIBLE); removeFromFolderItem.setVisibility(View.VISIBLE);
} }
if (filterTabsView != null && filterTabsView.getVisibility() == View.VISIBLE && filterTabsView.getCurrentTabId() == Integer.MAX_VALUE && !FiltersListBottomSheet.getCanAddDialogFilters(this, selectedDialogs).isEmpty()) { if (filterTabsView != null && ((searchTabsView != null && searchTabsView.getVisibility() == View.VISIBLE) || (filterTabsView.getVisibility() == View.VISIBLE && filterTabsView.getCurrentTabId() == Integer.MAX_VALUE)) && !FiltersListBottomSheet.getCanAddDialogFilters(this, selectedDialogs).isEmpty()) {
addToFolderItem.setVisibility(View.VISIBLE); addToFolderItem.setVisibility(View.VISIBLE);
} else { } else {
addToFolderItem.setVisibility(View.GONE); addToFolderItem.setVisibility(View.GONE);