Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5e750b9 authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE - Configuration resource to suppress tablet status bar contents" into ics-aah

parents 7717bcbe 8fead661
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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. -->
+11 −0
Original line number Diff line number Diff line
@@ -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);