forked from upstream-mirrors/OpenTracks
@@ -56,7 +56,7 @@ public abstract class AbstractActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
private void edge2edgeApplyInsets(View rootView) {
|
private void edge2edgeApplyInsets(View rootView) {
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(rootView, (view, windowInsets) -> {
|
ViewCompat.setOnApplyWindowInsetsListener(rootView, (view, windowInsets) -> {
|
||||||
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout());
|
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout() | WindowInsetsCompat.Type.ime());
|
||||||
view.setPadding(insets.left, insets.top, insets.right, insets.bottom);
|
view.setPadding(insets.left, insets.top, insets.right, insets.bottom);
|
||||||
return WindowInsetsCompat.CONSUMED;
|
return WindowInsetsCompat.CONSUMED;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user