mirror of https://github.com/M66B/FairEmail.git
Fixed keyboard inset
This commit is contained in:
parent
ce80f00313
commit
6755e03d40
|
@ -170,10 +170,9 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
mlp.bottomMargin = insets.bottom;
|
mlp.bottomMargin = insets.bottom;
|
||||||
v.setLayoutParams(mlp);
|
v.setLayoutParams(mlp);
|
||||||
|
|
||||||
if (ActivityBase.this instanceof ActivityCompose) {
|
int bottom = windowInsets.getInsets(WindowInsetsCompat.Type.ime()).bottom;
|
||||||
int bottom = windowInsets.getInsets(WindowInsetsCompat.Type.ime()).bottom;
|
int pad = bottom - insets.bottom;
|
||||||
v.setPaddingRelative(0, 0, 0, bottom - insets.bottom);
|
v.setPaddingRelative(0, 0, 0, pad < 0 ? 0 : pad);
|
||||||
}
|
|
||||||
|
|
||||||
if (edge_to_edge)
|
if (edge_to_edge)
|
||||||
for (View child : Helper.getViewsWithTag(v, "inset")) {
|
for (View child : Helper.getViewsWithTag(v, "inset")) {
|
||||||
|
|
Loading…
Reference in New Issue