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

Commit e55a9263 authored by Robyn Coultas's avatar Robyn Coultas
Browse files

Start Delete Confirmation in Create

BUG: 9901716

Re-starting the delete confirmation in Resume failed
because Resume can be called even when the Dialog is
still up, for example due to a phone call.

Change-Id: I215b6bfe137c1c7433d83b2c1c52039ead1ff303
parent ce9b1067
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -106,6 +106,10 @@ public class AlarmClock extends Activity implements LoaderManager.LoaderCallback
        initialize(savedState);
        updateLayout();
        getLoaderManager().initLoader(0, null, this);

        if (mInDeleteConfirmation) {
            showConfirmationDialog();
        }
    }

    private void initialize(Bundle savedState) {
@@ -180,13 +184,6 @@ public class AlarmClock extends Activity implements LoaderManager.LoaderCallback

    }

    @Override
    public void onResume() {
        super.onResume();
        if (mInDeleteConfirmation) {
            showConfirmationDialog();
        }
    }
    private void hideUndoBar(boolean animate, MotionEvent event) {
        if (mUndoBar != null) {
            if (event != null && mUndoBar.isEventInToastBar(event)) {