commit | 41cc05cd4d84be353b7bcf193b82f5c97cf0437f | [log] [tgz] |
---|---|---|
author | Jeffrey Carlyle <jcarlyle@google.com> | Tue Mar 24 01:13:59 2020 -0700 |
committer | Jeffrey Carlyle <jcarlyle@google.com> | Wed Aug 12 10:01:38 2020 -0700 |
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
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index a144453..7e1dc66 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 @@ * 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 @@ }); } - @VisibleForTesting - String computePowerIndication() { + protected String computePowerIndication() { if (mPowerCharged) { return mContext.getResources().getString(R.string.keyguard_charged); }