diff options
| author | 2022-11-17 21:52:56 +0000 | |
|---|---|---|
| committer | 2022-11-17 21:52:56 +0000 | |
| commit | 508857b346700daa014629926fbb98c505d57bd7 (patch) | |
| tree | 377176f1b63466031d386f3c7ed7e34d9ab9a939 | |
| parent | 03cfa05839a18247058e0db325424e764593538e (diff) | |
| parent | 3726e9b32ef0c12dd7e628c53e6a4416ed712b42 (diff) | |
Merge "Fix CompileTimeConstant ErrorProne findings in SystemUI" into tm-qpr-dev am: f8003e57e4 am: 3726e9b32e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20454887
Change-Id: I2e0e9f3cee3a1fb24ba25c98d5050743cc0aa40e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 files changed, 6 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java index b92cf5a0a49d..e0c4884e4c7a 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java @@ -5499,8 +5499,11 @@ public final class NotificationPanelViewController implements Dumpable { if (!animatingUnlockedShadeToKeyguard) { // Only make the status bar visible if we're not animating the screen off, since // we only want to be showing the clock/notifications during the animation. - mShadeLog.v("Updating keyguard status bar state to " - + (keyguardShowing ? "visible" : "invisible")); + if (keyguardShowing) { + mShadeLog.v("Updating keyguard status bar state to visible"); + } else { + mShadeLog.v("Updating keyguard status bar state to invisible"); + } mKeyguardStatusBarViewController.updateViewState( /* alpha= */ 1f, keyguardShowing ? View.VISIBLE : View.INVISIBLE); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 41dbf1d6dc60..962eeb962b81 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -3733,7 +3733,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable } } - private void debugLog(@CompileTimeConstant String s) { + private void debugLog(@CompileTimeConstant final String s) { if (mLogger == null) { return; } |