Skip to content

Commit 82ace4a

Browse files
author
Dianne Hackborn
committed
Update to use correct resources.
1 parent 84bc782 commit 82ace4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/Development/src/com/android/development/SyncAdapterDriver.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import android.app.PendingIntent;
2121
import android.app.Dialog;
2222
import android.app.AlertDialog;
23+
import android.content.res.Resources;
2324
import android.content.res.TypedArray;
2425
import android.content.pm.RegisteredServicesCache;
2526
import android.content.pm.RegisteredServicesCacheListener;
@@ -350,8 +351,9 @@ static class SyncAdaptersCache extends RegisteredServicesCache<SyncAdapterType>
350351
super(context, SERVICE_INTERFACE, SERVICE_META_DATA, ATTRIBUTES_NAME, null);
351352
}
352353

353-
public SyncAdapterType parseServiceAttributes(String packageName, AttributeSet attrs) {
354-
TypedArray sa = mContext.getResources().obtainAttributes(attrs,
354+
public SyncAdapterType parseServiceAttributes(Resources res,
355+
String packageName, AttributeSet attrs) {
356+
TypedArray sa = res.obtainAttributes(attrs,
355357
com.android.internal.R.styleable.SyncAdapter);
356358
try {
357359
final String authority =

0 commit comments

Comments
 (0)