Merge "Fix issue when launching Camera" into oc-mr1-dev

am: 5737af21cb

Change-Id: Iad1d59d9e2f256a394a459185f1226110e6f2e93
This commit is contained in:
Jorim Jaggi
2017-08-16 14:10:46 +00:00
committed by android-build-merger
2 changed files with 3 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ public class AppWindowAnimator {
}
// Start out animation gone if window is gone, or visible if window is visible.
transformation.clear();
transformation.setAlpha(mAppToken.hasContentToDisplay() ? 1 : 0);
transformation.setAlpha(mAppToken.isVisible() ? 1 : 0);
hasTransformation = true;
mStackClip = stackClip;
@@ -172,7 +172,7 @@ public class AppWindowAnimator {
animation = sDummyAnimation;
hasTransformation = true;
transformation.clear();
transformation.setAlpha(mAppToken.hasContentToDisplay() ? 1 : 0);
transformation.setAlpha(mAppToken.isVisible() ? 1 : 0);
}
void setNullAnimation() {

View File

@@ -1479,7 +1479,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
// TODO: Another visibility method that was added late in the release to minimize risk.
@Override
public boolean canAffectSystemUiFlags() {
final boolean shown = mWinAnimator.getShown();
final boolean shown = mWinAnimator.getShown() && mWinAnimator.mShownAlpha > 0f;
// We only consider the app to be exiting when the animation has started. After the app
// transition is executed the windows are marked exiting before the new windows have been