summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2022-05-15 11:17:03 +0200
committeralk3pInjection <webmaster@raspii.tech>2022-06-03 03:12:30 +0800
commitd525b56b18c35d95be43dbdeaf9cc4ae7a67e605 (patch)
tree3fc54820142e2021f7f7669b3cb984ec56ea6d5d
parentb5b00b1b7e25589c1262686226e0356009215425 (diff)
SystemUI: Catch IllegalArgumentException in updateHint()
Apparently this can fail for some very unlucky users? Change-Id: I3609746f9b577b91525fd64f586c2e79663f9ada
-rw-r--r--packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java
index de2ce021a7c2..ab0ef4da4f0e 100644
--- a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java
+++ b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarInflaterView.java
@@ -254,7 +254,7 @@ public class NavigationBarInflaterView extends FrameLayout
// our customization overlay to highest priority to ensure it is applied.
iom.setHighestPriority(OVERLAY_NAVIGATION_HIDE_HINT, userId);
}
- } catch (RemoteException e) {
+ } catch (IllegalArgumentException | RemoteException e) {
Log.e(TAG, "Failed to " + (state ? "enable" : "disable")
+ " overlay " + OVERLAY_NAVIGATION_HIDE_HINT + " for user " + userId);
}