Is there a way to get existing window inserts after submitting?

Is there a way to get the activity WindowInsets

at will, a long-established activity, without holding it or otherwise caching it?

eg.

WindowInsets insets = getWindow().getWindowInsets();
myUseCaseView.setPaddingTop(insets.getSystemWindowInsetTop);

      

+3


source to share





All Articles