Merge branch 'eclair' into eclair-release
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 490 KiB After Width: | Height: | Size: 142 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 642 B |
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB |
@@ -20,12 +20,13 @@
|
||||
<item>wallpaper_nexusrain</item>
|
||||
<item>wallpaper_darkgraylined</item>
|
||||
<item>wallpaper_brown</item>
|
||||
<item>wallpaper_nooneexpectsthe</item>
|
||||
<item>wallpaper_noexpectsthe</item>
|
||||
<item>wallpaper_lavadark</item>
|
||||
<item>wallpaper_greencorr</item>
|
||||
<item>wallpaper_pcut</item>
|
||||
<item>wallpaper_hazybluedots</item>
|
||||
<item>wallpaper_purple</item>
|
||||
<item>wallpaper_ropelights</item>
|
||||
<item>wallpaper_electric</item>
|
||||
<item>wallpaper_grass</item>
|
||||
<item>wallpaper_monumentvalley</item>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user