Enable extra count

pull/194/merge
M66B 3 years ago
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…
Cancel
Save