summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherClings.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-03-06 10:12:02 -0800
committerWinson Chung <winsonc@google.com>2014-03-06 10:33:41 -0800
commitc6c0367111e587c7f19cb8185dcda550aa94a848 (patch)
tree0a00c5e602e6bb1332c5c8cd85349baa806173c0 /src/com/android/launcher3/LauncherClings.java
parent0c255a946788499d7f169429890d5a423426593b (diff)
downloadandroid_packages_apps_Trebuchet-c6c0367111e587c7f19cb8185dcda550aa94a848.tar.gz
android_packages_apps_Trebuchet-c6c0367111e587c7f19cb8185dcda550aa94a848.tar.bz2
android_packages_apps_Trebuchet-c6c0367111e587c7f19cb8185dcda550aa94a848.zip
Disabling cling when the user moves the folder before launching it. (Bug 12963868)
Change-Id: Iddcdf655c78b7240be123bd549f3d45794d02c83
Diffstat (limited to 'src/com/android/launcher3/LauncherClings.java')
-rw-r--r--src/com/android/launcher3/LauncherClings.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher3/LauncherClings.java b/src/com/android/launcher3/LauncherClings.java
index 894f64da4..952edfd06 100644
--- a/src/com/android/launcher3/LauncherClings.java
+++ b/src/com/android/launcher3/LauncherClings.java
@@ -297,12 +297,18 @@ class LauncherClings {
public static void synchonouslyMarkFirstRunClingDismissed(Context ctx) {
SharedPreferences prefs = ctx.getSharedPreferences(
- LauncherAppState.getSharedPreferencesKey(),Context.MODE_PRIVATE);
+ LauncherAppState.getSharedPreferencesKey(), Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean(LauncherClings.FIRST_RUN_CLING_DISMISSED_KEY, true);
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);