diff options
| author | 2023-11-15 21:36:39 +0000 | |
|---|---|---|
| committer | 2023-11-15 21:36:39 +0000 | |
| commit | bcae0605e18dad528e03bb14fe0a99f85423296c (patch) | |
| tree | 02902ae0dd526d6257fd86f790b4ae3b195a1c32 | |
| parent | 5c13fdd0d3f9f6d8de22df4c51afd28cd894d2be (diff) | |
| parent | 23ce213907002d83d827d51e04f33ac69c0a7b5a (diff) | |
Merge "Add TYPE_NOTIFICATION_SHADE and TYPE_STATUS_BAR window type for Touch Boost" into main
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 145af2e7ab67..f98e1dd41b1b 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -81,6 +81,8 @@ import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; import static android.view.WindowManager.LayoutParams.TYPE_BASE_APPLICATION; import static android.view.WindowManager.LayoutParams.TYPE_DRAWN_APPLICATION; import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD; +import static android.view.WindowManager.LayoutParams.TYPE_NOTIFICATION_SHADE; +import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR; import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL; import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT; import static android.view.WindowManager.LayoutParams.TYPE_TOAST; @@ -12029,7 +12031,8 @@ public final class ViewRootImpl implements ViewParent, || motionEventAction == MotionEvent.ACTION_MOVE || motionEventAction == MotionEvent.ACTION_UP; boolean desiredType = windowType == TYPE_BASE_APPLICATION || windowType == TYPE_APPLICATION - || windowType == TYPE_APPLICATION_STARTING || windowType == TYPE_DRAWN_APPLICATION; + || windowType == TYPE_APPLICATION_STARTING || windowType == TYPE_DRAWN_APPLICATION + || windowType == TYPE_NOTIFICATION_SHADE || windowType == TYPE_STATUS_BAR; // use toolkitSetFrameRate flag to gate the change return desiredAction && desiredType && sToolkitSetFrameRateReadOnlyFlagValue; } |