mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-11 14:47:11 +00:00
Experiment: edge to edge simplified
This commit is contained in:
parent
9e3505e30b
commit
06eddf1ffc
1 changed files with 5 additions and 6 deletions
|
@ -207,12 +207,11 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
v.setPaddingRelative(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
if (edge_to_edge)
|
||||
for (View child : Helper.getViewsWithTag(v, "inset")) {
|
||||
mlp = (ViewGroup.MarginLayoutParams) child.getLayoutParams();
|
||||
mlp.bottomMargin = insets.bottom;
|
||||
child.setLayoutParams(mlp);
|
||||
}
|
||||
if (edge_to_edge) {
|
||||
b = v.getPaddingBottom();
|
||||
Insets nav = windowInsets.getInsets(WindowInsetsCompat.Type.navigationBars());
|
||||
v.setPaddingRelative(0, 0, 0, b + (nav.bottom - nav.top));
|
||||
}
|
||||
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
|
Loading…
Add table
Reference in a new issue