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

Commit e2ca0876 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Throw an exception if a both nav and system bars are configured"

parents 16e1678d bc0009d4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -437,6 +437,13 @@ public class TabletStatusBar extends StatusBar implements

        sb.setHandler(mHandler);

        // Sanity-check that someone hasn't set up the config wrong and asked for a navigation bar
        // on a tablet that has only the system bar
        if (mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_showNavigationBar)) {
            throw new RuntimeException("Tablet device cannot show navigation bar and system bar");
        }

        mBarContents = (ViewGroup) sb.findViewById(R.id.bar_contents);
        // layout transitions for the status bar's contents
        mBarContentsLayoutTransition = new LayoutTransition();