Created
May 9, 2020 15:00
-
-
Save vasyafromrussia/8f28e0a57e38e4f5f7de3fcab31bfef7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setSystemGestureExclusionRects(ArrayList<Rect> rects) { | |
if (Build.VERSION.SDK_INT < 29) { | |
return; | |
} | |
Window window = activity.getWindow(); | |
View view = window.getDecorView(); | |
view.setSystemGestureExclusionRects(rects); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment