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

Commit db410eb5 authored by Sean Stout's avatar Sean Stout
Browse files

Make sure label box exists before getting text

Bug: 30137239
Change-Id: I236f4bda8fb1b58269562fa11ef974b2af9a8c26
parent 657d992d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -80,8 +80,11 @@ public class LabelDialogFragment extends DialogFragment {
    @Override
    public void onSaveInstanceState(@NonNull Bundle outState) {
        super.onSaveInstanceState(outState);
        // As long as the label box exists, save its state.
        if (mLabelBox != null) {
            outState.putString(KEY_LABEL, mLabelBox.getText().toString());
        }
    }

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {