diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-05-01 00:49:36 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-05-01 00:49:36 +0200 |
commit | 47303b20c7fc028c1a7356607f82adafac4920dd (patch) | |
tree | ae453e0ceaaa267360e20c8ece050c66750f7577 /src/com/cyanogenmod/trebuchet/Launcher.java | |
parent | 8663738c00f7d82362743e2f9b7cf41aa7f02be7 (diff) | |
download | packages_apps_trebuchet-47303b20c7fc028c1a7356607f82adafac4920dd.zip packages_apps_trebuchet-47303b20c7fc028c1a7356607f82adafac4920dd.tar.gz packages_apps_trebuchet-47303b20c7fc028c1a7356607f82adafac4920dd.tar.bz2 |
Trebuchet: Use preference provider to lock/unlock homescreen
mSharedPreferences uses "com.cyanogenmod.trebuchet.prefs", while the Preferences activity uses
"com.cyanogenmod.trebuchet_preferences". Use PreferenceProvider to sync lock/unlock homescreen.
Change-Id: Ib9312a9f8cffe3f009b8cd8d9b9789d459c1bd96
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/Launcher.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Launcher.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java index c82c8fe..ed8ae08 100644 --- a/src/com/cyanogenmod/trebuchet/Launcher.java +++ b/src/com/cyanogenmod/trebuchet/Launcher.java @@ -1835,9 +1835,7 @@ public final class Launcher extends Activity return true; case MENU_LOCK_WORKSPACE: mLockWorkspace = !mLockWorkspace; - SharedPreferences.Editor editor = mSharedPrefs.edit(); - editor.putBoolean("ui_general_lock_workspace", mLockWorkspace); - editor.commit(); + PreferencesProvider.Interface.General.setLockWorkspace(this, mLockWorkspace); return true; } |