Skip to content

Commit

Permalink
Bring back the custom wallpaper picker [2/5]
Browse files Browse the repository at this point in the history
Change-Id: Iffd0911c0e37a3c27d598f22288b68a682b40154
TICKET: OSS-62
  • Loading branch information
0xD34D authored and Gerrit Code Review committed Jun 19, 2016
1 parent fd3ac2a commit 113538a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion Android.mk
Expand Up @@ -31,7 +31,6 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
LOCAL_STATIC_JAVA_AAR_LIBRARIES := ambientsdk

LOCAL_SRC_FILES := $(call all-java-files-under, src) \
$(call all-java-files-under, WallpaperPicker/src) \
$(call all-proto-files-under, protos)

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res \
Expand Down
6 changes: 4 additions & 2 deletions AndroidManifest.xml
Expand Up @@ -142,7 +142,8 @@
android:label="@string/pick_wallpaper"
android:icon="@mipmap/ic_launcher_wallpaper"
android:finishOnCloseSystemDialogs="true"
android:process=":wallpaper_chooser">
android:process=":wallpaper_chooser"
android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.SET_WALLPAPER" />
<category android:name="android.intent.category.DEFAULT" />
Expand All @@ -155,7 +156,8 @@
android:label="@string/crop_wallpaper"
android:icon="@mipmap/ic_launcher_wallpaper"
android:finishOnCloseSystemDialogs="true"
android:process=":wallpaper_chooser">
android:process=":wallpaper_chooser"
android:enabled="false">
<intent-filter>
<action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
2 changes: 1 addition & 1 deletion src/com/android/launcher3/Launcher.java
Expand Up @@ -3176,7 +3176,7 @@ protected void onClickAddWidgetButton(View view) {
*/
protected void onClickWallpaperPicker(View v) {
if (LOGD) Log.d(TAG, "onClickWallpaperPicker");
startActivityForResult(new Intent(Intent.ACTION_SET_WALLPAPER).setPackage(getPackageName()),
startActivityForResult(new Intent(Intent.ACTION_SET_WALLPAPER),
REQUEST_PICK_WALLPAPER);

if (mLauncherCallbacks != null) {
Expand Down

0 comments on commit 113538a

Please sign in to comment.