am 5237ccbf: Make the wallpaper picker supply the correct visibility state.

Merge commit '5237ccbf173d01f5d17daecc382856e0839f2622'

* commit '5237ccbf173d01f5d17daecc382856e0839f2622':
  Make the wallpaper picker supply the correct visibility state.
This commit is contained in:
Dianne Hackborn authored and Android Git Automerger committed 2009-08-30 10:59:28 -07:00
commit 75bb1937b4
1 file changed
+26
@@ -128,6 +128,10 @@ public class LiveWallpaperPickActivity extends LauncherActivity
synchronized (this) {
if (mConnected) {
mEngine = engine;
try {
engine.setVisibility(true);
} catch (RemoteException e) {
}
} else {
try {
engine.destroy();
@@ -158,6 +162,28 @@ public class LiveWallpaperPickActivity extends LauncherActivity
setResult(RESULT_CANCELED);
}
@Override
public void onResume() {
super.onResume();
if (mWallpaperConnection != null && mWallpaperConnection.mEngine != null) {
try {
mWallpaperConnection.mEngine.setVisibility(true);
} catch (RemoteException e) {
}
}
}
@Override
public void onPause() {
super.onPause();
if (mWallpaperConnection != null && mWallpaperConnection.mEngine != null) {
try {
mWallpaperConnection.mEngine.setVisibility(false);
} catch (RemoteException e) {
}
}
}
@Override
public void onDetachedFromWindow() {
super.onDetachedFromWindow();