From c33d5766610c77296a80dfdc4e302cc2ff794898 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 21 Oct 2011 13:28:22 -0400 Subject: SystemUI: Log an error instead of throwing an exception if navigation bar is enabled in tablet UI Signed-off-by: Mike Lockwood --- .../src/com/android/systemui/statusbar/tablet/TabletStatusBar.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java index 6287408..5151cad 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java @@ -456,8 +456,7 @@ public class TabletStatusBar extends StatusBar implements // 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 (mWindowManager.hasNavigationBar()) { - throw new RuntimeException( - "Tablet device cannot show navigation bar and system bar"); + Slog.e(TAG, "Tablet device cannot show navigation bar and system bar"); } } catch (RemoteException ex) { } -- cgit v1.1