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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user