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 =
|
private static final String EXTRA_LOGIN_WARNING_REASON_FOR_ACCOUNT =
|
||||||
"AccountSettings.for_account_reason";
|
"AccountSettings.for_account_reason";
|
||||||
private static final String EXTRA_TITLE = "AccountSettings.title";
|
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_NO_ACCOUNTS = "AccountSettings.no_account";
|
||||||
public static final String EXTRA_ACCOUNT = "AccountSettings.account";
|
public static final String EXTRA_ACCOUNT = "AccountSettings.account";
|
||||||
|
|
||||||
@ -453,15 +455,17 @@ public class AccountSettings extends PreferenceActivity implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally, if debug header is enabled, show it
|
// finally, if debug header is enabled, show it
|
||||||
if (mShowDebugMenu) {
|
if (DEBUG_MENU_ALLOWED) {
|
||||||
// setup lightweight header for debugging
|
if (mShowDebugMenu) {
|
||||||
final Header debugHeader = new Header();
|
// setup lightweight header for debugging
|
||||||
debugHeader.title = getText(R.string.debug_title);
|
final Header debugHeader = new Header();
|
||||||
debugHeader.summary = null;
|
debugHeader.title = getText(R.string.debug_title);
|
||||||
debugHeader.iconRes = 0;
|
debugHeader.summary = null;
|
||||||
debugHeader.fragment = DebugFragment.class.getCanonicalName();
|
debugHeader.iconRes = 0;
|
||||||
debugHeader.fragmentArguments = null;
|
debugHeader.fragment = DebugFragment.class.getCanonicalName();
|
||||||
target.add(debugHeader);
|
debugHeader.fragmentArguments = null;
|
||||||
|
target.add(debugHeader);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save for later use (see forceSwitch)
|
// Save for later use (see forceSwitch)
|
||||||
|
Loading…
Reference in New Issue
Block a user