diff options
| author | 2024-10-29 17:16:43 +0000 | |
|---|---|---|
| committer | 2024-10-29 17:16:43 +0000 | |
| commit | bd88cf430b85f5b379ef1e42fd88ac02e0ab400c (patch) | |
| tree | 4a8a590726eb37e797131468a62f021e29450e16 | |
| parent | 02244c6d374d2a748d930e8e25a2568cedd975ed (diff) | |
| parent | 8cdf650e22e44cceb0543d00053909a55575d90a (diff) | |
Merge "Set input layers to GONE rather than INVISIBLE." into main
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopStatusBarInputLayerSupplier.kt b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopStatusBarInputLayerSupplier.kt index 025bb403ec8b..9c5215d1249c 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopStatusBarInputLayerSupplier.kt +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopStatusBarInputLayerSupplier.kt @@ -66,7 +66,7 @@ class DesktopStatusBarInputLayerSupplier( lp.inputFeatures = WindowManager.LayoutParams.INPUT_FEATURE_SPY lp.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE val view = View(context) - view.visibility = View.INVISIBLE + view.visibility = View.GONE return AdditionalSystemViewContainer( WindowManagerWrapper( context.getSystemService<WindowManager>(WindowManager::class.java) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/AppHandleViewHolder.kt b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/AppHandleViewHolder.kt index b43a9839f042..c4e49466343e 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/AppHandleViewHolder.kt +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/AppHandleViewHolder.kt @@ -131,7 +131,7 @@ internal class AppHandleViewHolder( } // Remove the old input layer when changing to a new one. if (statusBarInputLayer != null) detachStatusBarInputLayer() - if (statusBarLayer.view.visibility == View.INVISIBLE) { + if (statusBarLayer.view.visibility == View.GONE) { statusBarLayer.view.visibility = View.VISIBLE } statusBarInputLayer = statusBarLayer |