Disable history browser unless on dev-branch.
This commit is contained in:
parent
8f641f994f
commit
54be28388b
2 changed files with 2 additions and 0 deletions
|
@ -344,6 +344,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
getMenuInflater().inflate(R.menu.menu_main, menu);
|
getMenuInflater().inflate(R.menu.menu_main, menu);
|
||||||
pluginPreferencesMenuItem = menu.findItem(R.id.nav_plugin_preferences);
|
pluginPreferencesMenuItem = menu.findItem(R.id.nav_plugin_preferences);
|
||||||
|
menu.findItem(R.id.nav_historybrowser).setVisible(MainApp.devBranch);
|
||||||
checkPluginPreferences(findViewById(R.id.pager));
|
checkPluginPreferences(findViewById(R.id.pager));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,7 @@ public class ActionsFragment extends SubscriberFragment implements View.OnClickL
|
||||||
tempBasalCancel.setOnClickListener(this);
|
tempBasalCancel.setOnClickListener(this);
|
||||||
fill.setOnClickListener(this);
|
fill.setOnClickListener(this);
|
||||||
history.setOnClickListener(this);
|
history.setOnClickListener(this);
|
||||||
|
history.setVisibility(MainApp.devBranch ? View.VISIBLE : View.GONE);
|
||||||
tddStats.setOnClickListener(this);
|
tddStats.setOnClickListener(this);
|
||||||
|
|
||||||
updateGUI();
|
updateGUI();
|
||||||
|
|
Loading…
Reference in a new issue