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

Commit 702db0c4 authored by Steve Kondik's avatar Steve Kondik
Browse files

Fix potential NPE in LockScreen.

Change-Id: I63c108fc67276a4c2e8f70cfb83ce5154aa82480
parent fa98c116
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -228,12 +228,14 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM

        mCustomMsg = (TextView) findViewById(R.id.customMsg);

        if (mCustomMsg != null) {
            if (mLockPatternUtils.isShowCustomMsg()) {
                mCustomMsg.setVisibility(View.VISIBLE);
                mCustomMsg.setText(mLockPatternUtils.getCustomMsg());
            } else {
                mCustomMsg.setVisibility(View.GONE);
            }
        }

        mPlayIcon = (ImageButton) findViewById(R.id.musicControlPlay);
        mPauseIcon = (ImageButton) findViewById(R.id.musicControlPause);