Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56245238 authored by Tiger's avatar Tiger Committed by Tiger Huang
Browse files

Always suppress scrim for taskbar

Taskbar never needs a semi-transparent scrim drawn by the decor view at
the insets area, because taskbar has the background color on its own if
needed.

Bug: 197615177
Test: SystemUIGoogleBiometricsScreenshotTests
Change-Id: Ic49c8af3ecbefcc83d1bd987812625c7e2f37157
parent 5a6e6205
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.os.Binder
import android.os.IBinder
import android.view.InsetsFrameProvider
import android.view.InsetsFrameProvider.SOURCE_DISPLAY
import android.view.InsetsSource.FLAG_SUPPRESS_SCRIM
import android.view.ViewTreeObserver
import android.view.ViewTreeObserver.InternalInsetsInfo.TOUCHABLE_INSETS_FRAME
import android.view.ViewTreeObserver.InternalInsetsInfo.TOUCHABLE_INSETS_REGION
@@ -86,7 +87,8 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
        if (context.isGestureNav) {
            windowLayoutParams.providedInsets =
                    arrayOf(
                            InsetsFrameProvider(insetsOwner, 0, navigationBars()),
                            InsetsFrameProvider(insetsOwner, 0, navigationBars())
                                    .setFlags(FLAG_SUPPRESS_SCRIM, FLAG_SUPPRESS_SCRIM),
                            InsetsFrameProvider(insetsOwner, 0, tappableElement()),
                            InsetsFrameProvider(insetsOwner, 0, mandatorySystemGestures()),
                            InsetsFrameProvider(insetsOwner, INDEX_LEFT, systemGestures())