Merge "Fix NPE when DEBUG = false" into ub-launcher3-master
diff --git a/src/com/android/launcher3/graphics/IconNormalizer.java b/src/com/android/launcher3/graphics/IconNormalizer.java
index ce2bca6..e0a7795 100644
--- a/src/com/android/launcher3/graphics/IconNormalizer.java
+++ b/src/com/android/launcher3/graphics/IconNormalizer.java
@@ -113,11 +113,8 @@
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();
}
/**