Loading core/res/res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -754,6 +754,11 @@ autodetected from the Configuration. --> <bool name="config_showNavigationBar">false</bool> <!-- Whether to suppress tablet status/nav bar contents. NOTE: this makes the device essentially useless except for kiosk-type scenarios. This configuration parameter will also go away soon. --> <bool name="config_emptyTabletStatusBar">false</bool> <!-- Whether action menu items should be displayed in ALLCAPS or not. Defaults to true. If this is not appropriate for specific locales it should be disabled in that locale's resources. --> Loading packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +11 −0 Original line number Diff line number Diff line Loading @@ -199,6 +199,17 @@ public class TabletStatusBar extends StatusBar implements final Context context = mContext; final Resources res = mContext.getResources(); // Product definitions can force the system bar to be empty. Note that // this renders the device largely unusable except for kiosk-type // scenarios. try { final boolean emptyBar = res.getBoolean( com.android.internal.R.bool.config_emptyTabletStatusBar); if (emptyBar) return; } catch (Resources.NotFoundException e) { // no override; ignore and use the default behavior } // Notification Panel mNotificationPanel = (NotificationPanel)View.inflate(context, R.layout.status_bar_notification_panel, null); Loading Loading
core/res/res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -754,6 +754,11 @@ autodetected from the Configuration. --> <bool name="config_showNavigationBar">false</bool> <!-- Whether to suppress tablet status/nav bar contents. NOTE: this makes the device essentially useless except for kiosk-type scenarios. This configuration parameter will also go away soon. --> <bool name="config_emptyTabletStatusBar">false</bool> <!-- Whether action menu items should be displayed in ALLCAPS or not. Defaults to true. If this is not appropriate for specific locales it should be disabled in that locale's resources. --> Loading
packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +11 −0 Original line number Diff line number Diff line Loading @@ -199,6 +199,17 @@ public class TabletStatusBar extends StatusBar implements final Context context = mContext; final Resources res = mContext.getResources(); // Product definitions can force the system bar to be empty. Note that // this renders the device largely unusable except for kiosk-type // scenarios. try { final boolean emptyBar = res.getBoolean( com.android.internal.R.bool.config_emptyTabletStatusBar); if (emptyBar) return; } catch (Resources.NotFoundException e) { // no override; ignore and use the default behavior } // Notification Panel mNotificationPanel = (NotificationPanel)View.inflate(context, R.layout.status_bar_notification_panel, null); Loading