SystemUI: Log an error instead of throwing an exception if navigation bar is enabled in tablet UI

Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2011-10-21 13:28:22 -04:00
committed by Mike Lockwood
parent 7bef73900b
commit c33d576661

View File

@@ -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) {
}