From 82ace4a0d750e377953141eeff84eb6c72655152 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 4 Mar 2010 11:37:50 -0800 Subject: Update to use correct resources. --- apps/Development/src/com/android/development/SyncAdapterDriver.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/Development') 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 = -- cgit v1.2.3