|
|
|
@ -170,6 +170,11 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|
|
|
|
mlp.bottomMargin = insets.bottom;
|
|
|
|
|
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)
|
|
|
|
|
for (View child : Helper.getViewsWithTag(v, "inset")) {
|
|
|
|
|
mlp = (ViewGroup.MarginLayoutParams) child.getLayoutParams();
|
|
|
|
@ -184,6 +189,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|
|
|
|
return WindowInsetsCompat.CONSUMED;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (false)
|
|
|
|
|
ViewCompat.setWindowInsetsAnimationCallback(
|
|
|
|
|
holder,
|
|
|
|
|
new WindowInsetsAnimationCompat.Callback(WindowInsetsAnimationCompat.Callback.DISPATCH_MODE_STOP) {
|
|
|
|
|