Fix NPE when DEBUG = false
Change-Id: I1d2fcb7a636369bf5dcabdda1a7ba5b106a0677b
This commit is contained in:
1 parent
dcd8b5c272
commit
3d6d4cacdc
1 file changed
+2
-5
@@ -113,11 +113,8 @@ public class IconNormalizer {
|
||||
int[] mPixels = new int[mMaxSize * mMaxSize];
|
||||
mAdaptiveIconScale = SCALE_NOT_INITIALIZED;
|
||||
|
||||
// Only needed when DEBUG == true
|
||||
if (DEBUG) {
|
||||
mDir = context.getExternalFilesDir(null);
|
||||
mRandom = new Random();
|
||||
}
|
||||
mDir = context.getExternalFilesDir(null);
|
||||
mRandom = new Random();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user