OSDN Git Service

Fix issue #2271640: Fix wallpaper etc docs
authorDianne Hackborn <hackbod@google.com>
Thu, 19 Nov 2009 02:21:54 +0000 (18:21 -0800)
committerDianne Hackborn <hackbod@google.com>
Thu, 19 Nov 2009 02:21:54 +0000 (18:21 -0800)
Track API changes.

Change-Id: If4a8a97395b4610a50e9f6a5308a99f2ab8c20e0

res/xml/fall.xml
res/xml/galaxy.xml
res/xml/grass.xml
res/xml/nexus.xml
res/xml/polar_clock.xml
res/xml/walkaround.xml
src/com/android/wallpaper/fall/FallRS.java

index 767fe70..9b99f2d 100644 (file)
@@ -21,6 +21,6 @@
 <!-- about the fall wallpaper. -->
 
 <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
-    android:wallpaperAuthor="@string/wallpaper_fall_author"
-    android:wallpaperDescription="@string/wallpaper_fall_desc"
+    android:author="@string/wallpaper_fall_author"
+    android:description="@string/wallpaper_fall_desc"
     android:thumbnail="@drawable/water_thumb" />
index dafa6d3..f668f33 100644 (file)
@@ -21,6 +21,6 @@
 <!-- about the galaxy wallpaper. -->
 
 <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
-    android:wallpaperAuthor="@string/wallpaper_galaxy_author"
-    android:wallpaperDescription="@string/wallpaper_galaxy_desc"
+    android:author="@string/wallpaper_galaxy_author"
+    android:description="@string/wallpaper_galaxy_desc"
     android:thumbnail="@drawable/galaxy_thumb" />
index c738018..013bda7 100644 (file)
@@ -21,6 +21,6 @@
 <!-- about the grass wallpaper. -->
 
 <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
-    android:wallpaperAuthor="@string/wallpaper_grass_author"
-    android:wallpaperDescription="@string/wallpaper_grass_desc"
+    android:author="@string/wallpaper_grass_author"
+    android:description="@string/wallpaper_grass_desc"
     android:thumbnail="@drawable/grass_thumb" />
index 3d14064..4b66d8c 100644 (file)
@@ -21,6 +21,6 @@
 <!-- about the nexus wallpaper. -->
 
 <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
-    android:wallpaperAuthor="@string/wallpaper_nexus_author"
-    android:wallpaperDescription="@string/wallpaper_nexus_desc"
+    android:author="@string/wallpaper_nexus_author"
+    android:description="@string/wallpaper_nexus_desc"
     android:thumbnail="@drawable/nexus_thumb" />
index 77ecc20..ef5732f 100644 (file)
@@ -21,7 +21,7 @@
 <!-- about the polar clock. -->
 
 <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
-    android:wallpaperAuthor="@string/wallpaper_clock_author"
-    android:wallpaperDescription="@string/wallpaper_clock_desc"
+    android:author="@string/wallpaper_clock_author"
+    android:description="@string/wallpaper_clock_desc"
     android:thumbnail="@drawable/polarclock_thumb"
     android:settingsActivity="com.android.wallpaper.polarclock.PolarClockSettings" />
index 3ec573c..84114ae 100644 (file)
@@ -21,6 +21,6 @@
 <!-- about the walk around wallpaper. -->
 
 <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
-    android:wallpaperAuthor="@string/wallpaper_walkaround_author"
-    android:wallpaperDescription="@string/wallpaper_walkaround_desc"
+    android:author="@string/wallpaper_walkaround_author"
+    android:description="@string/wallpaper_walkaround_desc"
     android:thumbnail="@drawable/seethru_thumb" />
index dc0d416..3e00c10 100644 (file)
@@ -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;