Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1463e18d authored by Jeffrey Carlyle's avatar Jeffrey Carlyle
Browse files

allow KeyguardIndicationController to be more easily overriden



Bug: 150239363
Test: overrode computePowerIndication with custom version
Signed-off-by: default avatarJeffrey Carlyle <jcarlyle@google.com>
Change-Id: Iccbeaa527014abc00107ea1165f93330d80c3791
parent 973589ac
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);
        }