summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-05-06 00:28:37 -0700
committerDianne Hackborn <hackbod@google.com>2009-05-06 00:28:37 -0700
commit7a1355950172b7a549820e9a2cd4a9b2099ec32f (patch)
treedc8940cdf38bae09e3427e44ebf1328861abc20b /packages
parent39a8bb26326ceeaad5b46d29bf485329c67ced2f (diff)
parent231cc608d06ffc31c24bf8aa8c8275bdd2636581 (diff)
downloadframeworks_base-7a1355950172b7a549820e9a2cd4a9b2099ec32f.zip
frameworks_base-7a1355950172b7a549820e9a2cd4a9b2099ec32f.tar.gz
frameworks_base-7a1355950172b7a549820e9a2cd4a9b2099ec32f.tar.bz2
merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581
Diffstat (limited to 'packages')
-rw-r--r--packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsIntentService.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsIntentService.java b/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsIntentService.java
index de7b1d7..0d05286 100644
--- a/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsIntentService.java
+++ b/packages/SubscribedFeedsProvider/src/com/android/providers/subscribedfeeds/SubscribedFeedsIntentService.java
@@ -9,7 +9,6 @@ import android.util.Log;
import android.util.Config;
import android.util.EventLog;
import android.app.IntentService;
-import android.provider.Sync;
import android.provider.SubscribedFeeds;
import android.provider.SyncConstValue;
import android.database.Cursor;
@@ -17,6 +16,7 @@ import android.database.sqlite.SQLiteFullException;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.Bundle;
+import android.os.RemoteException;
import android.text.TextUtils;
import android.net.Uri;
import android.accounts.Account;
@@ -108,10 +108,6 @@ public class SubscribedFeedsIntentService extends IntentService {
private void handleTickle(Context context, String accountName, String feed) {
Cursor c = null;
- Sync.Settings.QueryMap syncSettings =
- new Sync.Settings.QueryMap(context.getContentResolver(),
- false /* don't keep updated */,
- null /* not needed since keep updated is false */);
final String where = SubscribedFeeds.Feeds._SYNC_ACCOUNT + "= ? "
+ "and " + SubscribedFeeds.Feeds._SYNC_ACCOUNT_TYPE + "= ? "
+ "and " + SubscribedFeeds.Feeds.FEED + "= ?";
@@ -129,9 +125,14 @@ public class SubscribedFeedsIntentService extends IntentService {
String authority = c.getString(c.getColumnIndexOrThrow(
SubscribedFeeds.Feeds.AUTHORITY));
EventLog.writeEvent(LOG_TICKLE, authority);
- if (!syncSettings.getSyncProviderAutomatically(authority)) {
- Log.d(TAG, "supressing tickle since provider " + authority
- + " is configured to not sync automatically");
+ try {
+ if (!ContentResolver.getContentService()
+ .getSyncProviderAutomatically(authority)) {
+ Log.d(TAG, "supressing tickle since provider " + authority
+ + " is configured to not sync automatically");
+ continue;
+ }
+ } catch (RemoteException e) {
continue;
}
Uri uri = Uri.parse("content://" + authority);
@@ -143,7 +144,6 @@ public class SubscribedFeedsIntentService extends IntentService {
}
} finally {
if (c != null) c.deactivate();
- syncSettings.close();
}
}