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

Commit 6e0ac269 authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE crash in MainClearConfirm"

parents 87498a19 116d1099
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);
                }
        }
    }