am 18ab9629: am 9399a3de: Merge change 23320 into eclair

Merge commit '18ab96294f0842570f608e692dc3c88ce289df4f'

* commit '18ab96294f0842570f608e692dc3c88ce289df4f':
  Set result code in REMOTE_INTENT receiver for subscribed feeds.
This commit is contained in:
Ye Wen
2009-08-31 16:45:03 -07:00
committed by Android Git Automerger

View File

@@ -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,7 +36,10 @@ public class SubscribedFeedsBroadcastReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Received intent " + intent);
intent.setClass(context, SubscribedFeedsIntentService.class);
if (intent.getAction().equals(Intent.ACTION_REMOTE_INTENT)) {
setResultCode(Activity.RESULT_OK);
}
intent.setClass(context, SubscribedFeedsIntentService.class);
context.startService(intent);
}
}