Track API changes.
Change-Id: If4a8a97395b4610a50e9f6a5308a99f2ab8c20e0
<!-- 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" />
<!-- 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" />
<!-- 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" />
<!-- 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" />
<!-- 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" />
<!-- 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" />
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.*;
@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;