mirror of https://github.com/NekoX-Dev/NekoX.git
try fix tabs crash
This commit is contained in:
parent
f8a72d335e
commit
ec0caec469
|
@ -1327,7 +1327,7 @@ public class FilterTabsView extends FrameLayout {
|
|||
Tab firstTab = findDefaultTab();
|
||||
int tabWith = 0;
|
||||
int trueTabsWidth = allTabsWidth ;
|
||||
if (showAllChatsTab) {
|
||||
if (showAllChatsTab && firstTab != null) {
|
||||
tabWith = firstTab.getWidth(false);
|
||||
trueTabsWidth = allTabsWidth - tabWith;
|
||||
firstTab.setTitle(allTabsWidth > width ? LocaleController.getString("FilterAllChatsShort", R.string.FilterAllChatsShort) : LocaleController.getString("FilterAllChats", R.string.FilterAllChats));
|
||||
|
|
Loading…
Reference in New Issue