diff --git a/res/drawable-hdpi/wallpaper_greencorr.jpg b/res/drawable-hdpi/wallpaper_greencorr.jpg
index 2e97fdbc2f..93707a9201 100644
Binary files a/res/drawable-hdpi/wallpaper_greencorr.jpg and b/res/drawable-hdpi/wallpaper_greencorr.jpg differ
diff --git a/res/drawable-hdpi/wallpaper_greencorr_small.jpg b/res/drawable-hdpi/wallpaper_greencorr_small.jpg
index 9a3fcd1d7b..5776deebde 100644
Binary files a/res/drawable-hdpi/wallpaper_greencorr_small.jpg and b/res/drawable-hdpi/wallpaper_greencorr_small.jpg differ
diff --git a/res/raw/maps.png b/res/raw/maps.png
deleted file mode 100644
index fd5fc39037..0000000000
Binary files a/res/raw/maps.png and /dev/null differ
diff --git a/res/values-hdpi/wallpapers.xml b/res/values-hdpi/wallpapers.xml
index 45e0c31e90..37d542f5f9 100644
--- a/res/values-hdpi/wallpapers.xml
+++ b/res/values-hdpi/wallpapers.xml
@@ -20,12 +20,13 @@
- wallpaper_nexusrain
- wallpaper_darkgraylined
- wallpaper_brown
- - wallpaper_nooneexpectsthe
+ - wallpaper_noexpectsthe
- wallpaper_lavadark
- wallpaper_greencorr
- wallpaper_pcut
- wallpaper_hazybluedots
- wallpaper_purple
+ - wallpaper_ropelights
- wallpaper_electric
- wallpaper_grass
- wallpaper_monumentvalley
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 8ee995cfe7..5efabb4825 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -157,6 +157,13 @@ public class AllAppsView extends RSSurfaceView
setOnLongClickListener(this);
setZOrderOnTop(true);
getHolder().setFormat(PixelFormat.TRANSLUCENT);
+
+ mRS = createRenderScript(true);
+ }
+
+ @Override
+ protected void onDetachedFromWindow() {
+ destroyRenderScript();
}
/**
@@ -192,8 +199,7 @@ public class AllAppsView extends RSSurfaceView
super.surfaceChanged(holder, format, w, h);
- if (mRS == null) {
- mRS = createRenderScript(true);
+ if (mRollo == null) {
mRollo = new RolloRS();
mRollo.mHasSurface = true;
mRollo.init(getResources(), w, h);
@@ -204,11 +210,12 @@ public class AllAppsView extends RSSurfaceView
gainFocus();
mShouldGainFocus = false;
}
- mRollo.dirtyCheck();
} else {
mRollo.mHasSurface = true;
- mRollo.dirtyCheck();
}
+ mRollo.dirtyCheck();
+
+ mRS.mMessageCallback = mMessageProc = new AAMessage();
mRS.mMessageCallback = mMessageProc = new AAMessage();
@@ -298,7 +305,7 @@ public class AllAppsView extends RSSurfaceView
public boolean onKeyDown(int keyCode, KeyEvent event) {
boolean handled = false;
-
+
if (!isVisible()) {
return false;
}
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 6ca46243f8..c04176f13f 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -22,7 +22,6 @@ import android.app.Dialog;
import android.app.ISearchManager;
import android.app.SearchManager;
import android.app.StatusBarManager;
-import android.app.WallpaperInfo;
import android.app.WallpaperManager;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
@@ -34,7 +33,6 @@ import android.content.Intent;
import android.content.Intent.ShortcutIconResource;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
-import android.content.pm.LabeledIntent;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Configuration;
@@ -1288,15 +1286,17 @@ public final class Launcher extends Activity
final Intent pickWallpaper = new Intent(Intent.ACTION_SET_WALLPAPER);
Intent chooser = Intent.createChooser(pickWallpaper,
getText(R.string.chooser_wallpaper));
- WallpaperManager wm = (WallpaperManager)
- getSystemService(Context.WALLPAPER_SERVICE);
- WallpaperInfo wi = wm.getWallpaperInfo();
- if (wi != null && wi.getSettingsActivity() != null) {
- LabeledIntent li = new LabeledIntent(getPackageName(),
- R.string.configure_wallpaper, 0);
- li.setClassName(wi.getPackageName(), wi.getSettingsActivity());
- chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] { li });
- }
+ // NOTE: Adds a configure option to the chooser if the wallpaper supports it
+ // Removed in Eclair MR1
+// WallpaperManager wm = (WallpaperManager)
+// getSystemService(Context.WALLPAPER_SERVICE);
+// WallpaperInfo wi = wm.getWallpaperInfo();
+// if (wi != null && wi.getSettingsActivity() != null) {
+// LabeledIntent li = new LabeledIntent(getPackageName(),
+// R.string.configure_wallpaper, 0);
+// li.setClassName(wi.getPackageName(), wi.getSettingsActivity());
+// chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] { li });
+// }
startActivityForResult(chooser, REQUEST_PICK_WALLPAPER);
}