Merge "Fixed cutout flicker in C10, P10" into tm-dev am: 5a9d90c165
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18179570 Change-Id: Iad2cfb67f8f125bf9bbe1c4ca3e7813894511ff2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -47,6 +47,7 @@ import android.hardware.graphics.common.AlphaInterpretation;
|
|||||||
import android.hardware.graphics.common.DisplayDecorationSupport;
|
import android.hardware.graphics.common.DisplayDecorationSupport;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.SystemProperties;
|
import android.os.SystemProperties;
|
||||||
|
import android.os.Trace;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.provider.Settings.Secure;
|
import android.provider.Settings.Secure;
|
||||||
import android.util.DisplayUtils;
|
import android.util.DisplayUtils;
|
||||||
@@ -1067,15 +1068,22 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateLayoutParams() {
|
private void updateLayoutParams() {
|
||||||
if (mOverlays == null) {
|
//ToDo: We should skip unnecessary call to update view layout.
|
||||||
return;
|
Trace.beginSection("ScreenDecorations#updateLayoutParams");
|
||||||
|
if (mScreenDecorHwcWindow != null) {
|
||||||
|
mWindowManager.updateViewLayout(mScreenDecorHwcWindow, getHwcWindowLayoutParams());
|
||||||
}
|
}
|
||||||
for (int i = 0; i < BOUNDS_POSITION_LENGTH; i++) {
|
|
||||||
if (mOverlays[i] == null) {
|
if (mOverlays != null) {
|
||||||
continue;
|
for (int i = 0; i < BOUNDS_POSITION_LENGTH; i++) {
|
||||||
|
if (mOverlays[i] == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
mWindowManager.updateViewLayout(
|
||||||
|
mOverlays[i].getRootView(), getWindowLayoutParams(i));
|
||||||
}
|
}
|
||||||
mWindowManager.updateViewLayout(mOverlays[i].getRootView(), getWindowLayoutParams(i));
|
|
||||||
}
|
}
|
||||||
|
Trace.endSection();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user