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

Commit 6f4a4701 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "OPP: Fix Window leak in Alert Activity." am: e554c793

Change-Id: I98cdb4b583e7621b5338e6cae2a32e1f4b805520
parents 229f13b1 e554c793
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();
    }

}