am 9399a3de: Merge change 23320 into eclair
Merge commit '9399a3de6acb6e598fdceae2684ff9bb9d8c1050' into eclair-plus-aosp * commit '9399a3de6acb6e598fdceae2684ff9bb9d8c1050': Set result code in REMOTE_INTENT receiver for subscribed feeds.
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package com.android.providers.subscribedfeeds;
|
package com.android.providers.subscribedfeeds;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@@ -35,7 +36,10 @@ public class SubscribedFeedsBroadcastReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Received 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);
|
context.startService(intent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user