Fixed keyboard inset after screen off / lost focus

pull/215/head
M66B 6 months ago
parent 9917eb583e
commit 4ac3307a5b

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

Loading…
Cancel
Save