summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InvariantDeviceProfile.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-01-23 16:42:43 -0800
committerSunny Goyal <sunnygoyal@google.com>2019-01-23 16:43:26 -0800
commit90e3fbca6215b0bf2996786db5c9398a9691f3bf (patch)
treeb82c25bce305b409fe708f4b94ac202a8f4c3b7e /src/com/android/launcher3/InvariantDeviceProfile.java
parent95ee747f7613b6626d593cef8fed845fbd00f1be (diff)
downloadpackages_apps_Trebuchet-90e3fbca6215b0bf2996786db5c9398a9691f3bf.tar.gz
packages_apps_Trebuchet-90e3fbca6215b0bf2996786db5c9398a9691f3bf.tar.bz2
packages_apps_Trebuchet-90e3fbca6215b0bf2996786db5c9398a9691f3bf.zip
Updating folder shape when icon shape changes
> Removing unnecessary threading logic and the code was running on main thread anyway Bug: 118757840 Change-Id: I7a012db5a0dbe2c23bd6ff2cd39679a803731ee8
Diffstat (limited to 'src/com/android/launcher3/InvariantDeviceProfile.java')
-rw-r--r--src/com/android/launcher3/InvariantDeviceProfile.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/InvariantDeviceProfile.java b/src/com/android/launcher3/InvariantDeviceProfile.java
index dafd5bb91..6582df2b7 100644
--- a/src/com/android/launcher3/InvariantDeviceProfile.java
+++ b/src/com/android/launcher3/InvariantDeviceProfile.java
@@ -36,6 +36,7 @@ import android.util.Xml;
import android.view.Display;
import android.view.WindowManager;
+import com.android.launcher3.folder.FolderShape;
import com.android.launcher3.util.ConfigMonitor;
import com.android.launcher3.util.IntArray;
import com.android.launcher3.util.MainThreadInitializedObject;
@@ -285,6 +286,10 @@ public class InvariantDeviceProfile {
!iconShapePath.equals(oldProfile.iconShapePath)) {
changeFlags |= CHANGE_FLAG_ICON_PARAMS;
}
+ if (!iconShapePath.equals(oldProfile.iconShapePath)) {
+ FolderShape.init(context);
+ }
+
apply(context, changeFlags);
}