Store application context to avoid activity leak.
Bug 3285156 Change-Id: I579cf628d178cabf999fc7cd63765298d2082944
This commit is contained in:
parent
9afd6bc59f
commit
e1b4d2cd4a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user