OSDN Git Service

Forward wallpaper activity results to the caller.
authorAjay Nadathur <ajayns@google.com>
Tue, 7 Nov 2017 21:38:50 +0000 (13:38 -0800)
committerAjay Nadathur <ajayns@google.com>
Wed, 8 Nov 2017 19:03:04 +0000 (11:03 -0800)
commitd473e38c745ee671edd8dd1265b1c608e251a60d
treee48bbc369594b5f18f9e62dd2091e619edf8e8f7
parent2260321fd899120e2a049e40dfd3f38343ea9fc4
Forward wallpaper activity results to the caller.

- Added Activity.FLAG_ACTIVITY_FORWARD_RESULT to the intent that
launches the wallpaper activities.
- WallpaperSuggestionActivity also finishes itself after launching
intent.

Bug: 65691577
Test: Added robolectric test. Also verified manually that result code is
being forwarded
Change-Id: I2f8b0fac7a35c38e14c4a733b7552fd2e58dd0db
src/com/android/settings/Utils.java
src/com/android/settings/wallpaper/WallpaperSuggestionActivity.java
src/com/android/settings/wallpaper/WallpaperTypeSettings.java
tests/robotests/src/com/android/settings/wallpaper/WallpaperSuggestionActivityTest.java
tests/robotests/src/com/android/settings/wallpaper/WallpaperTypeSettingsTest.java [new file with mode: 0644]