summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Peletskyi <peletskyi@google.com>2016-01-26 19:53:54 (GMT)
committerOleksandr Peletskyi <peletskyi@google.com>2016-02-26 17:42:33 (GMT)
commit7997c3840cdfc4a99ece354fb451d9363f6dc679 (patch)
tree35e41e4d2239f539b1d5e657c281f1c9c05e4439
parent55b73c6cf6eaf3e02f3d104373744c773a418269 (diff)
downloadandroid_packages_wallpapers_LivePicker-7997c3840cdfc4a99ece354fb451d9363f6dc679.zip
android_packages_wallpapers_LivePicker-7997c3840cdfc4a99ece354fb451d9363f6dc679.tar.gz
android_packages_wallpapers_LivePicker-7997c3840cdfc4a99ece354fb451d9363f6dc679.tar.bz2
Used call via IPC so that we can check user restriction in WallpaperManager.
BUG: 24890474 Change-Id: Ia755b3bc44d8dec270ecc8ee102b83bad56b92b2 (cherry picked from commit 83aab8c6a51d2fc5ab7600db9bcd0e49d8121617)
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
index 2f32e36..ab658ca 100644
--- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
@@ -102,13 +102,10 @@ public class LiveWallpaperPreview extends Activity {
public void setLiveWallpaper(View v) {
try {
- mWallpaperManager.getIWallpaperManager().setWallpaperComponent(
- mWallpaperIntent.getComponent());
+ mWallpaperManager.setWallpaperComponent(mWallpaperIntent.getComponent());
mWallpaperManager.setWallpaperOffsetSteps(0.5f, 0.0f);
mWallpaperManager.setWallpaperOffsets(v.getRootView().getWindowToken(), 0.5f, 0.0f);
setResult(RESULT_OK);
- } catch (RemoteException e) {
- // do nothing
} catch (RuntimeException e) {
Log.w(LOG_TAG, "Failure setting wallpaper", e);
}