Fix allow hide "All Chats"

This commit is contained in:
NekoInverter 2020-04-17 13:25:06 +08:00
parent 4ab054520c
commit cbec0cc444
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
1 changed files with 2 additions and 2 deletions

View File

@ -968,7 +968,7 @@ public class FilterTabsView extends FrameLayout {
requestLayout();
adapter.notifyDataSetChanged();
allTabsWidth = 0;
tabs.get(0).setTitle(LocaleController.getString("FilterAllChats", R.string.FilterAllChats));
if (!NekoConfig.hideAllTab) tabs.get(0).setTitle(LocaleController.getString("FilterAllChats", R.string.FilterAllChats));
for (int b = 0; b < N; b++) {
allTabsWidth += tabs.get(b).getWidth(true) + AndroidUtilities.dp(32);
}
@ -997,7 +997,7 @@ public class FilterTabsView extends FrameLayout {
requestLayout();
adapter.notifyDataSetChanged();
allTabsWidth = 0;
tabs.get(0).setTitle(LocaleController.getString("FilterAllChats", R.string.FilterAllChats));
if (!NekoConfig.hideAllTab) tabs.get(0).setTitle(LocaleController.getString("FilterAllChats", R.string.FilterAllChats));
for (int b = 0, N = tabs.size(); b < N; b++) {
allTabsWidth += tabs.get(b).getWidth(true) + AndroidUtilities.dp(32);
}