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:
committed by
Mike Lockwood
parent
7bef73900b
commit
c33d576661
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user