OSDN Git Service

Fixing a resource loading issue.
authorDmitri Plotnikov <dplotnikov@google.com>
Tue, 9 Mar 2010 21:39:38 +0000 (13:39 -0800)
committerDmitri Plotnikov <dplotnikov@google.com>
Tue, 9 Mar 2010 21:39:38 +0000 (13:39 -0800)
Bug: 2500266
Change-Id: I3ae726c20cf222fa19d4b2fdbd18c961f4004504

src/com/android/contacts/model/Sources.java

index b6422fb..c786752 100644 (file)
@@ -51,6 +51,7 @@ import java.util.Locale;
 public class Sources extends BroadcastReceiver implements OnAccountsUpdateListener {
     private static final String TAG = "Sources";
 
+    private Context mContext;
     private Context mApplicationContext;
     private AccountManager mAccountManager;
 
@@ -79,6 +80,7 @@ public class Sources extends BroadcastReceiver implements OnAccountsUpdateListen
      * Internal constructor that only performs initial parsing.
      */
     private Sources(Context context) {
+        mContext = context;
         mApplicationContext = context.getApplicationContext();
         mAccountManager = AccountManager.get(mApplicationContext);
 
@@ -288,7 +290,7 @@ public class Sources extends BroadcastReceiver implements OnAccountsUpdateListen
             return source;
         } else {
             // Not inflated, but requested that we force-inflate
-            source.ensureInflated(mApplicationContext, inflateLevel);
+            source.ensureInflated(mContext, inflateLevel);
             return source;
         }
     }