Fixed keyboard inset after screen off / lost focus

This commit is contained in:
M66B
2024-06-14 20:55:33 +02:00
parent 9917eb583e
commit 4ac3307a5b

View File

@@ -248,6 +248,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
@Override
public void onWindowFocusChanged(boolean hasFocus) {
hasWindowFocus = hasFocus;
Window window = getWindow();
View view = (window == null ? null : window.getDecorView());
if (view != null)
view.requestApplyInsets();
}
@Override