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

Commit 9b1f3796 authored by Paul Sliwowski's avatar Paul Sliwowski
Browse files

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

Bug: 9057948

Change-Id: I5f81b29f8e8fd21f9748004795ee5748eefc8b32
parent a0b14abb
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();