From 9d9a645b22a264e740b5a93ac1cddda594d36181 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 18 Nov 2009 18:21:54 -0800 Subject: [PATCH] Fix issue #2271640: Fix wallpaper etc docs Track API changes. Change-Id: If4a8a97395b4610a50e9f6a5308a99f2ab8c20e0 --- res/xml/fall.xml | 4 ++-- res/xml/galaxy.xml | 4 ++-- res/xml/grass.xml | 4 ++-- res/xml/nexus.xml | 4 ++-- res/xml/polar_clock.xml | 4 ++-- res/xml/walkaround.xml | 4 ++-- src/com/android/wallpaper/fall/FallRS.java | 6 ++++-- 7 files changed, 16 insertions(+), 14 deletions(-) diff --git a/res/xml/fall.xml b/res/xml/fall.xml index 767fe70..9b99f2d 100644 --- a/res/xml/fall.xml +++ b/res/xml/fall.xml @@ -21,6 +21,6 @@ diff --git a/res/xml/galaxy.xml b/res/xml/galaxy.xml index dafa6d3..f668f33 100644 --- a/res/xml/galaxy.xml +++ b/res/xml/galaxy.xml @@ -21,6 +21,6 @@ diff --git a/res/xml/grass.xml b/res/xml/grass.xml index c738018..013bda7 100644 --- a/res/xml/grass.xml +++ b/res/xml/grass.xml @@ -21,6 +21,6 @@ diff --git a/res/xml/nexus.xml b/res/xml/nexus.xml index 3d14064..4b66d8c 100644 --- a/res/xml/nexus.xml +++ b/res/xml/nexus.xml @@ -21,6 +21,6 @@ diff --git a/res/xml/polar_clock.xml b/res/xml/polar_clock.xml index 77ecc20..ef5732f 100644 --- a/res/xml/polar_clock.xml +++ b/res/xml/polar_clock.xml @@ -21,7 +21,7 @@ diff --git a/res/xml/walkaround.xml b/res/xml/walkaround.xml index 3ec573c..84114ae 100644 --- a/res/xml/walkaround.xml +++ b/res/xml/walkaround.xml @@ -21,6 +21,6 @@ diff --git a/src/com/android/wallpaper/fall/FallRS.java b/src/com/android/wallpaper/fall/FallRS.java index dc0d416..3e00c10 100644 --- a/src/com/android/wallpaper/fall/FallRS.java +++ b/src/com/android/wallpaper/fall/FallRS.java @@ -34,6 +34,8 @@ import static android.renderscript.ProgramStore.BlendDstFunc; import static android.renderscript.ProgramStore.BlendSrcFunc; import static android.renderscript.ProgramFragment.EnvMode.*; import static android.renderscript.Element.*; + +import android.app.WallpaperManager; import android.graphics.BitmapFactory; import android.graphics.Bitmap; import static android.util.MathUtils.*; @@ -110,9 +112,9 @@ class FallRS extends RenderScriptScene { @Override public Bundle onCommand(String action, int x, int y, int z, Bundle extras, boolean resultRequested) { - if ("android.wallpaper.tap".equals(action)) { + if (WallpaperManager.COMMAND_TAP.equals(action)) { addDrop(x + (mWorldState.width * mWorldState.xOffset), y); - } else if ("android.home.drop".equals(action)) { + } else if (WallpaperManager.COMMAND_DROP.equals(action)) { addDrop(x + (mWorldState.width * mWorldState.xOffset), y); } return null; -- 2.11.0