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

Commit 118bb2bd authored by Jim Miller's avatar Jim Miller
Browse files

Fix 5906830: Don't crash on lock screens that lack a clock.

This fixes a crash seen in SIM unlock screen where the
layout doesn't have a clock to update.

Change-Id: Ic1473b60f6d32f3feae9e7aa4510f6e435fa9a73
parent b90559a6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -294,8 +294,10 @@ class KeyguardStatusViewManager implements OnClickListener {
    public void onResume() {
        if (DEBUG) Log.v(TAG, "onResume()");

        // First update the clock
        // First update the clock, if present.
        if (mDigitalClock != null) {
            mDigitalClock.updateTime();
        }

        mUpdateMonitor.registerInfoCallback(mInfoCallback);
        mUpdateMonitor.registerSimStateCallback(mSimStateCallback);