summaryrefslogtreecommitdiffstats
path: root/core/java/android/service/wallpaper/WallpaperService.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-09-06 21:08:27 -0700
committerDianne Hackborn <hackbod@google.com>2009-09-07 01:01:15 -0700
commit0586a1b77a788a119166a37fccd909bf9ed65f23 (patch)
tree274272fd870b2cde2215b086138f557622cef8f2 /core/java/android/service/wallpaper/WallpaperService.java
parent88e625795943dea84b2e7c32f37e71303143b728 (diff)
downloadframeworks_base-0586a1b77a788a119166a37fccd909bf9ed65f23.zip
frameworks_base-0586a1b77a788a119166a37fccd909bf9ed65f23.tar.gz
frameworks_base-0586a1b77a788a119166a37fccd909bf9ed65f23.tar.bz2
Fix issue #2095422: Some fades from opaque to transparent don't work
ViewRoot was using Surface.clear(), which has different behavior in different processes -- in the system process it would kill the surface, causing all windows in that process to immediately disappear instead of animating away. This change makes Surface.release() public and uses that instead. It also renames Surface.clear() to Surface.destroy(). Also fixed some issues in the window manager that were causing the wallpaper to not get immediately resized when the orientation changes and its target window is removed and re-added. Change-Id: I2a992e365cf5747511f0bf1193db32dc2525b218
Diffstat (limited to 'core/java/android/service/wallpaper/WallpaperService.java')
-rw-r--r--core/java/android/service/wallpaper/WallpaperService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/service/wallpaper/WallpaperService.java b/core/java/android/service/wallpaper/WallpaperService.java
index 2cdfc66..2e4f1d2 100644
--- a/core/java/android/service/wallpaper/WallpaperService.java
+++ b/core/java/android/service/wallpaper/WallpaperService.java
@@ -377,6 +377,7 @@ public abstract class WallpaperService extends Service {
if (!mCreated) {
mLayout.type = mIWallpaperEngine.mWindowType;
mLayout.gravity = Gravity.LEFT|Gravity.TOP;
+ mLayout.setTitle(WallpaperService.this.getClass().getName());
mLayout.windowAnimations =
com.android.internal.R.style.Animation_Wallpaper;
mSession.add(mWindow, mLayout, View.VISIBLE, mContentInsets);
@@ -558,7 +559,7 @@ public abstract class WallpaperService extends Service {
mSession.remove(mWindow);
} catch (RemoteException e) {
}
- mSurfaceHolder.mSurface.clear();
+ mSurfaceHolder.mSurface.release();
mCreated = false;
}
}