am 4b5b7886
: Merge "Disable the debug menu" into ub-mail-algol
* commit '4b5b7886bc91c27688387ae00e552ad8540eb3e7': Disable the debug menu
This commit is contained in:
commit
4461f1d99e
@ -87,6 +87,8 @@ public class AccountSettings extends PreferenceActivity implements
|
||||
private static final String EXTRA_LOGIN_WARNING_REASON_FOR_ACCOUNT =
|
||||
"AccountSettings.for_account_reason";
|
||||
private static final String EXTRA_TITLE = "AccountSettings.title";
|
||||
// STOPSHIP: Do not ship with the debug menu allowed.
|
||||
private static final boolean DEBUG_MENU_ALLOWED = false;
|
||||
public static final String EXTRA_NO_ACCOUNTS = "AccountSettings.no_account";
|
||||
public static final String EXTRA_ACCOUNT = "AccountSettings.account";
|
||||
|
||||
@ -453,6 +455,7 @@ public class AccountSettings extends PreferenceActivity implements
|
||||
}
|
||||
|
||||
// finally, if debug header is enabled, show it
|
||||
if (DEBUG_MENU_ALLOWED) {
|
||||
if (mShowDebugMenu) {
|
||||
// setup lightweight header for debugging
|
||||
final Header debugHeader = new Header();
|
||||
@ -463,6 +466,7 @@ public class AccountSettings extends PreferenceActivity implements
|
||||
debugHeader.fragmentArguments = null;
|
||||
target.add(debugHeader);
|
||||
}
|
||||
}
|
||||
|
||||
// Save for later use (see forceSwitch)
|
||||
mGeneratedHeaders = target;
|
||||
|
Loading…
Reference in New Issue
Block a user