summaryrefslogtreecommitdiffstats
path: root/WallpaperPicker
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-11-10 10:35:00 -0800
committerAdnan <adnan@cyngn.com>2014-11-19 15:53:57 -0800
commit2d1bb4321c662ee7b192b90c9476d6293c1f4885 (patch)
treeb94bc7e48cb03ee8080ea1f3c548e69db131f5e9 /WallpaperPicker
parent707d1538836e2a65c0a1bb0157617e44f3ec81a2 (diff)
downloadandroid_packages_apps_Trebuchet-2d1bb4321c662ee7b192b90c9476d6293c1f4885.tar.gz
android_packages_apps_Trebuchet-2d1bb4321c662ee7b192b90c9476d6293c1f4885.tar.bz2
android_packages_apps_Trebuchet-2d1bb4321c662ee7b192b90c9476d6293c1f4885.zip
Remove old preference activity
* Also cleanup & remove unused strings Conflicts: AndroidManifest.xml WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java res/values/cm_strings.xml Change-Id: I0b9f2405ab98b0df612a18ccfaa5d9ba98876d8a
Diffstat (limited to 'WallpaperPicker')
-rw-r--r--WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
index 07285372e..619069d23 100644
--- a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
+++ b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
@@ -702,6 +702,20 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
return thumb;
}
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle presses on the action bar items
+ switch (item.getItemId()) {
+ case MENU_WALLPAPER_SCROLL:
+ SettingsProvider.get(this).edit()
+ .putBoolean(SettingsProvider.SETTINGS_UI_HOMESCREEN_SCROLLING_WALLPAPER_SCROLL, !item.isChecked())
+ .commit();
+ return true;
+ default:
+ return super.onOptionsItemSelected(item);
+ }
+ }
+
protected void onStop() {
super.onStop();
mWallpaperStrip = findViewById(R.id.wallpaper_strip);