OSDN Git Service

Update SEND_CONFIGURATION message to use displayId param
authorAndrii Kulian <akulian@google.com>
Tue, 1 Nov 2016 17:37:22 +0000 (10:37 -0700)
committerAndrii Kulian <akulian@google.com>
Tue, 1 Nov 2016 17:37:22 +0000 (10:37 -0700)
Probably this piece was lost somewhere in merges.
The param was added in ag/1551198

Test: Existing and manual tests still pass.
Change-Id: I2dbc533361b9a821a952511e469a99df230d45cf

services/core/java/com/android/server/wm/DisplayContent.java

index 793d2fe..8db8118 100644 (file)
@@ -2650,7 +2650,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
                 if (DEBUG_LAYOUT) Slog.v(TAG, "Computing new config from layout");
                 if (mService.updateOrientationFromAppTokensLocked(true, mDisplayId)) {
                     setLayoutNeeded();
-                    mService.mH.sendEmptyMessage(SEND_NEW_CONFIGURATION);
+                    mService.mH.obtainMessage(SEND_NEW_CONFIGURATION, mDisplayId).sendToTarget();
                 }
             }