Advanced setup icon in debug version only

pull/147/head
M66B 6 years ago
parent 350d5204ac
commit 3dc68763fd

@ -353,6 +353,7 @@ public class FragmentSetup extends FragmentBase {
@Override @Override
public void onPrepareOptionsMenu(Menu menu) { public void onPrepareOptionsMenu(Menu menu) {
PackageManager pm = getContext().getPackageManager(); PackageManager pm = getContext().getPackageManager();
menu.findItem(R.id.menu_advanced).setVisible(BuildConfig.DEBUG);
menu.findItem(R.id.menu_help).setVisible(getIntentHelp().resolveActivity(pm) != null); menu.findItem(R.id.menu_help).setVisible(getIntentHelp().resolveActivity(pm) != null);
super.onPrepareOptionsMenu(menu); super.onPrepareOptionsMenu(menu);
} }

Loading…
Cancel
Save