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
This commit is contained in:
Jeffrey Carlyle
2020-03-24 01:13:59 -07:00
parent 973589ac3d
commit 1463e18d20

View File

@@ -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);
}