Store application context to avoid activity leak.

Bug 3285156

Change-Id: I579cf628d178cabf999fc7cd63765298d2082944
This commit is contained in:
Makoto Onuki 2010-12-14 17:12:22 -08:00
parent 9afd6bc59f
commit e1b4d2cd4a

View File

@ -32,7 +32,7 @@ public class ResourceHelper {
private final Paint[] mAccountColorPaints;
private ResourceHelper(Context context) {
mContext = context;
mContext = context.getApplicationContext();
mResources = mContext.getResources();
mAccountColors = mResources.getIntArray(R.array.combined_view_account_colors);