mirror of https://github.com/M66B/FairEmail.git
Enable extra count
This commit is contained in:
parent
2f5681f167
commit
c87c025d3b
|
@ -662,6 +662,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
protected void onPostCreate(Bundle savedInstanceState) {
|
||||
super.onPostCreate(savedInstanceState);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean nav_count = prefs.getBoolean("nav_count", false);
|
||||
|
||||
// Fixed menus
|
||||
|
||||
final List<NavMenuItem> menus = new ArrayList<>();
|
||||
|
@ -673,7 +676,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
drawerLayout.closeDrawer(drawerContainer);
|
||||
onMenuOperations();
|
||||
}
|
||||
}).setExtraCount(BuildConfig.DEBUG);
|
||||
}).setExtraCount(nav_count);
|
||||
|
||||
menus.add(navOperations);
|
||||
|
||||
|
@ -824,7 +827,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
// Live data
|
||||
|
||||
DB db = DB.getInstance(this);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
|
||||
db.account().liveAccountFolder().observe(owner, new Observer<List<TupleAccountFolder>>() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue