summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-05-13 19:50:59 (GMT)
committerClark Scheff <clark@cyngn.com>2014-05-13 19:50:59 (GMT)
commit3c4c81ab000ca007023e23d7ac3ce908e6a428fe (patch)
tree4d61bf4134c65dd280d61951bcf92163ff9d4364
parentd027815092005de1a63d24ab0c06ea0f982b9843 (diff)
downloadandroid_packages_apps_Trebuchet-3c4c81ab000ca007023e23d7ac3ce908e6a428fe.zip
android_packages_apps_Trebuchet-3c4c81ab000ca007023e23d7ac3ce908e6a428fe.tar.gz
android_packages_apps_Trebuchet-3c4c81ab000ca007023e23d7ac3ce908e6a428fe.tar.bz2
Use wallpaper picker added to WallpaperCropper apk.
The code is still here for easier upstream merges. Change-Id: I97ec1492e8acf7ff6a5ceef00a68f47e6444bf50
-rw-r--r--AndroidManifest.xml40
-rw-r--r--src/com/android/launcher3/Launcher.java7
2 files changed, 6 insertions, 41 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 95e6f7f..8599cd4 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -117,46 +117,6 @@
</intent-filter>
</activity>
- <activity
- android:name="com.android.launcher3.LockWallpaperPickerActivity"
- android:theme="@style/Theme.WallpaperCropper"
- android:label="@string/pick_wallpaper"
- android:icon="@mipmap/ic_launcher_wallpaper"
- android:finishOnCloseSystemDialogs="true"
- android:process=":wallpaper_chooser">
- <intent-filter>
- <action android:name="android.intent.action.SET_KEYGUARD_WALLPAPER" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
-
- <activity
- android:name="com.android.launcher3.WallpaperPickerActivity"
- android:theme="@style/Theme.WallpaperCropper"
- android:label="@string/pick_wallpaper"
- android:icon="@mipmap/ic_launcher_wallpaper"
- android:finishOnCloseSystemDialogs="true"
- android:process=":wallpaper_chooser">
- <intent-filter>
- <action android:name="android.intent.action.SET_WALLPAPER" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
-
- <activity
- android:name="com.android.launcher3.WallpaperCropActivity"
- android:theme="@style/Theme.WallpaperCropper"
- android:label="@string/crop_wallpaper"
- android:icon="@mipmap/ic_launcher_wallpaper"
- android:finishOnCloseSystemDialogs="true"
- android:process=":wallpaper_chooser">
- <intent-filter>
- <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
- <category android:name="android.intent.category.DEFAULT" />
- <data android:mimeType="image/*" />
- </intent-filter>
- </activity>
-
<!-- Debugging tools -->
<activity
android:name="com.android.launcher3.MemoryDumpActivity"
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 2961842..5519801 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -195,6 +195,11 @@ public class Launcher extends Activity
private static final String TOOLBAR_VOICE_SEARCH_ICON_METADATA_NAME =
"com.android.launcher.toolbar_voice_search_icon";
+ private static final String WALLPAPER_PICKER_PACKAGE =
+ "com.android.wallpapercropper";
+ private static final String WALLPAPER_PICKER_ACTIVITY =
+ "com.android.wallpapercropper.WallpaperPickerActivity";
+
public static final String SHOW_WEIGHT_WATCHER = "debug.show_mem";
public static final boolean SHOW_WEIGHT_WATCHER_DEFAULT = false;
@@ -2322,7 +2327,7 @@ public class Launcher extends Activity
}
protected ComponentName getWallpaperPickerComponent() {
- return new ComponentName(getPackageName(), WallpaperPickerActivity.class.getName());
+ return new ComponentName(WALLPAPER_PICKER_PACKAGE, WALLPAPER_PICKER_ACTIVITY);
}
/**