summaryrefslogtreecommitdiffstats
path: root/apps/Development
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-03-04 11:37:50 -0800
committerDianne Hackborn <hackbod@google.com>2010-03-04 11:37:50 -0800
commit82ace4a0d750e377953141eeff84eb6c72655152 (patch)
tree9655745a41c7c69ca8c27657b9fdf3b1e47f9cf5 /apps/Development
parent84bc7826b89e8b678db1a3e6b127601ecfccef95 (diff)
downloadandroid_development-82ace4a0d750e377953141eeff84eb6c72655152.tar.gz
android_development-82ace4a0d750e377953141eeff84eb6c72655152.tar.bz2
android_development-82ace4a0d750e377953141eeff84eb6c72655152.zip
Update to use correct resources.
Diffstat (limited to 'apps/Development')
-rw-r--r--apps/Development/src/com/android/development/SyncAdapterDriver.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/Development/src/com/android/development/SyncAdapterDriver.java b/apps/Development/src/com/android/development/SyncAdapterDriver.java
index c37075f9b..a91e0ed99 100644
--- a/apps/Development/src/com/android/development/SyncAdapterDriver.java
+++ b/apps/Development/src/com/android/development/SyncAdapterDriver.java
@@ -20,6 +20,7 @@ import android.app.Activity;
import android.app.PendingIntent;
import android.app.Dialog;
import android.app.AlertDialog;
+import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.pm.RegisteredServicesCache;
import android.content.pm.RegisteredServicesCacheListener;
@@ -350,8 +351,9 @@ public class SyncAdapterDriver extends Activity
super(context, SERVICE_INTERFACE, SERVICE_META_DATA, ATTRIBUTES_NAME, null);
}
- public SyncAdapterType parseServiceAttributes(String packageName, AttributeSet attrs) {
- TypedArray sa = mContext.getResources().obtainAttributes(attrs,
+ public SyncAdapterType parseServiceAttributes(Resources res,
+ String packageName, AttributeSet attrs) {
+ TypedArray sa = res.obtainAttributes(attrs,
com.android.internal.R.styleable.SyncAdapter);
try {
final String authority =