Fixed keyboard inset

pull/215/head
M66B 7 months ago
parent 153bf8b577
commit 8f97864131

@ -130,19 +130,12 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
if (ActivityBase.this instanceof ActivityCompose) {
int bottom = windowInsets.getInsets(WindowInsetsCompat.Type.ime()).bottom;
ViewCompat.onApplyWindowInsets(v, new WindowInsetsCompat
.Builder()
.setInsets(
WindowInsetsCompat.Type.systemBars(),
Insets.of(0, 0, 0, bottom - insets.bottom)
)
.build());
v.setPaddingRelative(0, 0, 0, bottom - insets.bottom);
}
return WindowInsetsCompat.CONSUMED;
});
super.setContentView(container);
int colorPrimaryDark = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark);

Loading…
Cancel
Save