summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2014-09-04 18:03:51 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-04 18:03:52 +0000
commit0f6c32af063a44e22af72825f19f51808a2c0cf3 (patch)
treea8c61c7af1e28d01b3b15f99e4171bce9b3a0595
parent6bed40eddc29c536c064c9238cfefe863c3d0db5 (diff)
parent9e18397112df0ebe49b9e4325d7040498b2afcfa (diff)
downloadframeworks_base-0f6c32af063a44e22af72825f19f51808a2c0cf3.zip
frameworks_base-0f6c32af063a44e22af72825f19f51808a2c0cf3.tar.gz
frameworks_base-0f6c32af063a44e22af72825f19f51808a2c0cf3.tar.bz2
Merge ""Back" with translucent window now sets ActivityOptions." into lmp-dev
-rw-r--r--core/java/android/app/Activity.java1
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java1
-rwxr-xr-xservices/core/java/com/android/server/am/ActivityManagerService.java2
3 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index 8ab344e..29ef484 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -5410,6 +5410,7 @@ public class Activity extends ContextThemeWrapper
mTranslucentCallback = callback;
mChangeCanvasToTranslucent =
ActivityManagerNative.getDefault().convertToTranslucent(mToken, options);
+ WindowManagerGlobal.getInstance().changeCanvasOpacity(mToken, false);
drawComplete = true;
} catch (RemoteException e) {
// Make callback return as though it timed out.
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index 81a838a..f39727a 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -2890,7 +2890,6 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
invalidate();
int opacity = PixelFormat.OPAQUE;
-
// Note: if there is no background, we will assume opaque. The
// common case seems to be that an application sets there to be
// no background so it can draw everything itself. For that,
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index 2e9df8a..b116d76 100755
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -10346,8 +10346,8 @@ public final class ActivityManagerService extends ActivityManagerNative
final boolean translucentChanged = r.changeWindowTranslucency(false);
if (translucentChanged) {
r.task.stack.convertToTranslucent(r);
- mStackSupervisor.ensureActivitiesVisibleLocked(null, 0);
}
+ mStackSupervisor.ensureActivitiesVisibleLocked(null, 0);
mWindowManager.setAppFullscreen(token, false);
return translucentChanged;
}