We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86cc099 commit 8bdcdecCopy full SHA for 8bdcdec
app/src/main/java/com/github/cvzi/screenshottile/services/ScreenshotAccessibilityService.kt
@@ -515,9 +515,12 @@ class ScreenshotAccessibilityService : AccessibilityService() {
515
this.x = x
516
this.y = y
517
// Allow the floating button to cover the camera notch/cutout
518
- layoutInDisplayCutoutMode =
+ flags = flags or WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
519
+ layoutInDisplayCutoutMode = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
520
+ WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
521
+ } else {
522
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
-
523
+ }
524
}
525
526
0 commit comments