Skip to content

Instantly share code, notes, and snippets.

@vasyafromrussia
Created May 9, 2020 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasyafromrussia/8f28e0a57e38e4f5f7de3fcab31bfef7 to your computer and use it in GitHub Desktop.
Save vasyafromrussia/8f28e0a57e38e4f5f7de3fcab31bfef7 to your computer and use it in GitHub Desktop.
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