mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 09:16:00 +00:00
Added workaround for invalid IME inset
This commit is contained in:
parent
2798a6a6c8
commit
6dfb12ec39
1 changed files with 10 additions and 0 deletions
|
@ -1094,6 +1094,16 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
@Override
|
||||
public void onFragmentResumed(@NonNull FragmentManager fm, @NonNull Fragment f) {
|
||||
log(fm, f, "onFragmentResumed");
|
||||
|
||||
// WindowInsetsAnimationCompat / COMPAT_ANIMATION_DURATION = 160 ms
|
||||
View v = f.getView();
|
||||
if (v != null && Helper.isKeyboardVisible(v))
|
||||
v.postDelayed(new RunnableEx("resumed") {
|
||||
@Override
|
||||
protected void delegate() {
|
||||
v.requestApplyInsets();
|
||||
}
|
||||
}, 250);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue