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

Commit 0322d0a6 authored by Paul Sliwowski's avatar Paul Sliwowski Committed by Android (Google) Code Review
Browse files

Merge "Fixed ISE issue when subscribing to gcm groups from the main thread."...

Merge "Fixed ISE issue when subscribing to gcm groups from the main thread." into ics-ub-calendar-eggplant
parents 5f86971d 9b1f3796
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -253,7 +253,15 @@ public class AlertActivity extends Activity implements OnClickListener {
    @Override
    protected void onStop() {
        super.onStop();
        AlertService.updateAlertNotification(this);
        // Can't run updateAlertNotification in main thread
        AsyncTask task = new AsyncTask<Context, Void, Void>() {
            @Override
            protected Void doInBackground(Context ... params) {
                AlertService.updateAlertNotification(params[0]);
                return null;
            }
        }.execute(this);


        if (mCursor != null) {
            mCursor.deactivate();