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

Commit 116d1099 authored by Edgar Wang's avatar Edgar Wang
Browse files

Fix NPE crash in MainClearConfirm

Change-Id: Ica420a521749b9826f73e806cec762ab8f65784c
Fix: 261163075
Test: manual
parent 82789d15
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -267,8 +267,10 @@ public class MainClearConfirm extends InstrumentedFragment {
    @VisibleForTesting
    void setSubtitle() {
        if (mEraseEsims) {
            ((TextView) mContentView.findViewById(R.id.sud_layout_description))
                .setText(R.string.main_clear_final_desc_esim);
            TextView confirmationMessage = mContentView.findViewById(R.id.sud_layout_description);
            if (confirmationMessage != null) {
                confirmationMessage.setText(R.string.main_clear_final_desc_esim);
                }
        }
    }