1
0
Fork 0
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:
M66B 2024-06-12 08:27:22 +02:00
parent 2798a6a6c8
commit 6dfb12ec39

View file

@ -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