File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
services/java/com/android/server Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,9 @@ public void setHasContentLocked(boolean hasContent) {
299299 }
300300
301301 public void dumpLocked (PrintWriter pw ) {
302+ pw .println ("mDisplayId=" + mDisplayId );
302303 pw .println ("mLayerStack=" + mLayerStack );
304+ pw .println ("mHasContent=" + mHasContent );
303305 pw .println ("mPrimaryDisplayDevice=" + (mPrimaryDisplayDevice != null ?
304306 mPrimaryDisplayDevice .getNameLocked () : "null" ));
305307 pw .println ("mBaseDisplayInfo=" + mBaseDisplayInfo );
Original file line number Diff line number Diff line change @@ -10870,8 +10870,8 @@ private void handleDisplayRemovedLocked(int displayId) {
1087010870 final DisplayContent displayContent = getDisplayContentLocked (displayId );
1087110871 mDisplayContents .delete (displayId );
1087210872 WindowList windows = displayContent .getWindowList ();
10873- for ( int i = windows .size () - 1 ; i >= 0 ; -- i ) {
10874- final WindowState win = windows .get (i );
10873+ while (! windows .isEmpty () ) {
10874+ final WindowState win = windows .get (windows . size () - 1 );
1087510875 removeWindowLocked (win .mSession , win );
1087610876 }
1087710877 mAnimator .removeDisplayLocked (displayId );
You can’t perform that action at this time.
0 commit comments