diff options
| author | 2020-03-24 01:13:59 -0700 | |
|---|---|---|
| committer | 2020-08-12 10:01:38 -0700 | |
| commit | 41cc05cd4d84be353b7bcf193b82f5c97cf0437f (patch) | |
| tree | 2d2e0fc06fbc772a86570219de097766567427d3 | |
| parent | 3fbdd17f4582232568076a79bbe3793c19a9b605 (diff) | |
allow KeyguardIndicationController to be more easily overriden
Bug: 150239363
Test: overrode computePowerIndication with custom version
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: Iccbeaa527014abc00107ea1165f93330d80c3791
Merged-In: Iccbeaa527014abc00107ea1165f93330d80c3791
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java | 5 |
1 files 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 a1444532bd5e..7e1dc6634cec 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); } |