From 41cc05cd4d84be353b7bcf193b82f5c97cf0437f Mon Sep 17 00:00:00 2001 From: Jeffrey Carlyle Date: Tue, 24 Mar 2020 01:13:59 -0700 Subject: [PATCH] allow KeyguardIndicationController to be more easily overriden Bug: 150239363 Test: overrode computePowerIndication with custom version Signed-off-by: Jeffrey Carlyle Change-Id: Iccbeaa527014abc00107ea1165f93330d80c3791 Merged-In: Iccbeaa527014abc00107ea1165f93330d80c3791 --- .../systemui/statusbar/KeyguardIndicationController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index a1444532bd5e0..7e1dc6634ceca 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -140,7 +140,7 @@ public class KeyguardIndicationController implements StateListener, * Creates a new KeyguardIndicationController and registers callbacks. */ @Inject - KeyguardIndicationController(Context context, + public KeyguardIndicationController(Context context, WakeLock.Builder wakeLockBuilder, KeyguardStateController keyguardStateController, StatusBarStateController statusBarStateController, @@ -523,8 +523,7 @@ public class KeyguardIndicationController implements StateListener, }); } - @VisibleForTesting - String computePowerIndication() { + protected String computePowerIndication() { if (mPowerCharged) { return mContext.getResources().getString(R.string.keyguard_charged); }