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

Commit 44667ec0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "OPP: Fix Window leak in Alert Activity." am: 712bca0e am: 00e969fc

Change-Id: I20dcb9c4f5b5faa7ccf2c401f6595e8778035f91
parents e0642f0b 00e969fc
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -112,4 +112,13 @@ public abstract class AlertActivity extends Activity implements DialogInterface.
        if (mAlert == null) return;
        mAlert.getButton(identifier).setEnabled(enable);
    }

    @Override
    protected void onDestroy() {
        if (mAlert != null) {
            mAlert.dismiss();
        }
        super.onDestroy();
    }

}