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) { protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState); super.onPostCreate(savedInstanceState);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean nav_count = prefs.getBoolean("nav_count", false);
// Fixed menus // Fixed menus
final List<NavMenuItem> menus = new ArrayList<>(); final List<NavMenuItem> menus = new ArrayList<>();
@ -673,7 +676,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
drawerLayout.closeDrawer(drawerContainer); drawerLayout.closeDrawer(drawerContainer);
onMenuOperations(); onMenuOperations();
} }
}).setExtraCount(BuildConfig.DEBUG); }).setExtraCount(nav_count);
menus.add(navOperations); menus.add(navOperations);
@ -824,7 +827,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
// Live data // Live data
DB db = DB.getInstance(this); DB db = DB.getInstance(this);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
db.account().liveAccountFolder().observe(owner, new Observer<List<TupleAccountFolder>>() { db.account().liveAccountFolder().observe(owner, new Observer<List<TupleAccountFolder>>() {
@Override @Override

Loading…
Cancel
Save