Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8efb0a4d authored by Craig Mautner's avatar Craig Mautner
Browse files

Add extra layout pass after draw finished.

Once content has been drawn another pass through layout is required
to set mHasContent in the LogicalDisplay. Previously this pass was
occuring because of a delayed animation step. When timing of that
step changed that pass occurred before the draw completed. This is
why Presentations were immediately displayed in jb-mr1 and not
jb-mr2.

Fixes bug 10154780.

Change-Id: I0075c5a73d5cdf972e73fdd59c1fde46df64e245
parent 7a605df3
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1272,6 +1272,11 @@ class WindowStateAnimator {
                            if (mIsWallpaper) {
                            if (mIsWallpaper) {
                                mService.dispatchWallpaperVisibility(w, true);
                                mService.dispatchWallpaperVisibility(w, true);
                            }
                            }
                            // This draw means the difference between unique content and mirroring.
                            // Run another pass through performLayout to set mHasContent in the
                            // LogicalDisplay.
                            mAnimator.setPendingLayoutChanges(w.getDisplayId(),
                                    WindowManagerPolicy.FINISH_LAYOUT_REDO_ANIM);
                        } else {
                        } else {
                            w.mOrientationChanging = false;
                            w.mOrientationChanging = false;
                        }
                        }