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

Commit 09984e8e authored by Ye Wen's avatar Ye Wen
Browse files

Set result code in REMOTE_INTENT receiver for subscribed feeds.

parent de5cd3d8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.providers.subscribedfeeds;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -35,6 +36,9 @@ public class SubscribedFeedsBroadcastReceiver extends BroadcastReceiver {

    public void onReceive(Context context, Intent intent) {
        if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Received intent " + intent);
        if (intent.getAction().equals(Intent.ACTION_REMOTE_INTENT)) {
            setResultCode(Activity.RESULT_OK);
        }
        intent.setClass(context, SubscribedFeedsIntentService.class);
        context.startService(intent);
    }