Loading core/res/res/values-watch/config.xml +1 −2 Original line number Diff line number Diff line Loading @@ -21,9 +21,8 @@ for watch products. Do not translate. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Only show power and settings items due to smaller real estate. --> <!-- Only show settings item due to smaller real estate. --> <string-array translatable="false" name="config_globalActionsList"> <item>power</item> <item>settings</item> </string-array> Loading policy/src/com/android/internal/policy/impl/GlobalActions.java +13 −6 Original line number Diff line number Diff line Loading @@ -182,12 +182,18 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac mDialog = createDialog(); prepareDialog(); // If we only have 1 item and it's a simple press action, just do this action. if (mAdapter.getCount() == 1 && mAdapter.getItem(0) instanceof SinglePressAction) { ((SinglePressAction) mAdapter.getItem(0)).onPress(); } else { WindowManager.LayoutParams attrs = mDialog.getWindow().getAttributes(); attrs.setTitle("GlobalActions"); mDialog.getWindow().setAttributes(attrs); mDialog.show(); mDialog.getWindow().getDecorView().setSystemUiVisibility(View.STATUS_BAR_DISABLE_EXPAND); } } /** * Create the global actions dialog. Loading Loading @@ -397,7 +403,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac @Override public boolean showBeforeProvisioning() { return false; return true; } }; } Loading Loading @@ -1021,6 +1027,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac mEnableAccessibilityController = null; super.setCanceledOnTouchOutside(true); } super.onStart(); } Loading Loading
core/res/res/values-watch/config.xml +1 −2 Original line number Diff line number Diff line Loading @@ -21,9 +21,8 @@ for watch products. Do not translate. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Only show power and settings items due to smaller real estate. --> <!-- Only show settings item due to smaller real estate. --> <string-array translatable="false" name="config_globalActionsList"> <item>power</item> <item>settings</item> </string-array> Loading
policy/src/com/android/internal/policy/impl/GlobalActions.java +13 −6 Original line number Diff line number Diff line Loading @@ -182,12 +182,18 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac mDialog = createDialog(); prepareDialog(); // If we only have 1 item and it's a simple press action, just do this action. if (mAdapter.getCount() == 1 && mAdapter.getItem(0) instanceof SinglePressAction) { ((SinglePressAction) mAdapter.getItem(0)).onPress(); } else { WindowManager.LayoutParams attrs = mDialog.getWindow().getAttributes(); attrs.setTitle("GlobalActions"); mDialog.getWindow().setAttributes(attrs); mDialog.show(); mDialog.getWindow().getDecorView().setSystemUiVisibility(View.STATUS_BAR_DISABLE_EXPAND); } } /** * Create the global actions dialog. Loading Loading @@ -397,7 +403,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac @Override public boolean showBeforeProvisioning() { return false; return true; } }; } Loading Loading @@ -1021,6 +1027,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac mEnableAccessibilityController = null; super.setCanceledOnTouchOutside(true); } super.onStart(); } Loading