mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 17:26:12 +00:00
Fixed keyboard inset
This commit is contained in:
parent
153bf8b577
commit
8f97864131
1 changed files with 1 additions and 8 deletions
|
@ -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…
Reference in a new issue