Disabled keyboard inset animation

pull/215/head
M66B 1 year ago
parent 27bea3a1c1
commit ce80f00313

@ -170,6 +170,11 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
mlp.bottomMargin = insets.bottom; mlp.bottomMargin = insets.bottom;
v.setLayoutParams(mlp); v.setLayoutParams(mlp);
if (ActivityBase.this instanceof ActivityCompose) {
int bottom = windowInsets.getInsets(WindowInsetsCompat.Type.ime()).bottom;
v.setPaddingRelative(0, 0, 0, bottom - insets.bottom);
}
if (edge_to_edge) if (edge_to_edge)
for (View child : Helper.getViewsWithTag(v, "inset")) { for (View child : Helper.getViewsWithTag(v, "inset")) {
mlp = (ViewGroup.MarginLayoutParams) child.getLayoutParams(); mlp = (ViewGroup.MarginLayoutParams) child.getLayoutParams();
@ -184,6 +189,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
return WindowInsetsCompat.CONSUMED; return WindowInsetsCompat.CONSUMED;
}); });
if (false)
ViewCompat.setWindowInsetsAnimationCallback( ViewCompat.setWindowInsetsAnimationCallback(
holder, holder,
new WindowInsetsAnimationCompat.Callback(WindowInsetsAnimationCompat.Callback.DISPATCH_MODE_STOP) { new WindowInsetsAnimationCompat.Callback(WindowInsetsAnimationCompat.Callback.DISPATCH_MODE_STOP) {

Loading…
Cancel
Save