Loading src/com/android/launcher3/LauncherClings.java +7 −1 Original line number Diff line number Diff line Loading @@ -303,6 +303,12 @@ class LauncherClings { editor.commit(); } public void markFolderClingDismissed() { SharedPreferences.Editor editor = mLauncher.getSharedPrefs().edit(); editor.putBoolean(LauncherClings.FOLDER_CLING_DISMISSED_KEY, true); editor.apply(); } /** Removes the cling outright from the DragLayer */ private void removeCling(int id) { final View cling = mLauncher.findViewById(id); Loading src/com/android/launcher3/Workspace.java +3 −0 Original line number Diff line number Diff line Loading @@ -2632,6 +2632,9 @@ public class Workspace extends SmoothPagedView if (child instanceof BubbleTextView) { BubbleTextView icon = (BubbleTextView) child; icon.clearPressedOrFocusedBackground(); } else if (child instanceof FolderIcon) { // Dismiss the folder cling if we haven't already mLauncher.getLauncherClings().markFolderClingDismissed(); } if (child.getTag() == null || !(child.getTag() instanceof ItemInfo)) { Loading Loading
src/com/android/launcher3/LauncherClings.java +7 −1 Original line number Diff line number Diff line Loading @@ -303,6 +303,12 @@ class LauncherClings { editor.commit(); } public void markFolderClingDismissed() { SharedPreferences.Editor editor = mLauncher.getSharedPrefs().edit(); editor.putBoolean(LauncherClings.FOLDER_CLING_DISMISSED_KEY, true); editor.apply(); } /** Removes the cling outright from the DragLayer */ private void removeCling(int id) { final View cling = mLauncher.findViewById(id); Loading
src/com/android/launcher3/Workspace.java +3 −0 Original line number Diff line number Diff line Loading @@ -2632,6 +2632,9 @@ public class Workspace extends SmoothPagedView if (child instanceof BubbleTextView) { BubbleTextView icon = (BubbleTextView) child; icon.clearPressedOrFocusedBackground(); } else if (child instanceof FolderIcon) { // Dismiss the folder cling if we haven't already mLauncher.getLauncherClings().markFolderClingDismissed(); } if (child.getTag() == null || !(child.getTag() instanceof ItemInfo)) { Loading