From 1463e18d20a83a99497905d70d3191ac54dfa9c3 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 --- .../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 5475812b55630..17509699b17e6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -122,7 +122,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, @@ -433,8 +433,7 @@ public class KeyguardIndicationController implements StateListener, }); } - @VisibleForTesting - String computePowerIndication() { + protected String computePowerIndication() { if (mPowerCharged) { return mContext.getResources().getString(R.string.keyguard_charged); }