commit | ba3e31d9eed67291a51b501d12fdc27625af688e | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Thu Apr 22 18:59:03 2010 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Thu Apr 22 18:59:03 2010 -0700 |
tree | 02f0e389c845c4a757758de21688561ca3038a50 | |
parent | 90c6aec10f969acf9b171b82920480fb6aeb007f [diff] |
Some debugging help for issue #2594388 WallpaperService doesn't always call onSurfaceDestroyed() Just helps us see a little better what is going on. Change-Id: Ibe8efd9e343e880ca31df446c8b36c7fa3722e87
diff --git a/core/java/android/service/wallpaper/WallpaperService.java b/core/java/android/service/wallpaper/WallpaperService.java index f47a8d0..7f202a7 100644 --- a/core/java/android/service/wallpaper/WallpaperService.java +++ b/core/java/android/service/wallpaper/WallpaperService.java
@@ -715,6 +715,8 @@ if (mCreated) { try { + if (DEBUG) Log.v(TAG, "Removing window and destroying surface " + + mSurfaceHolder.getSurface() + " of: " + this); mSession.remove(mWindow); } catch (RemoteException e) { }
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java index 255e317..6a9218a 100644 --- a/core/java/android/view/Surface.java +++ b/core/java/android/view/Surface.java
@@ -386,7 +386,7 @@ @Override public String toString() { - return "Surface(native-token=" + mSurfaceControl + ")"; + return "Surface(native-token=" + mSurface + ")"; } private Surface(Parcel source) throws OutOfResourcesException {