mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 17:26:12 +00:00
Optimization
This commit is contained in:
parent
36f1077dbd
commit
599685cf18
1 changed files with 4 additions and 2 deletions
|
@ -158,8 +158,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
try {
|
try {
|
||||||
view.setTranslationY(abh + offset);
|
view.setTranslationY(abh + offset);
|
||||||
ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||||
|
if (mlp.bottomMargin != abh + offset) {
|
||||||
mlp.bottomMargin = abh + offset;
|
mlp.bottomMargin = abh + offset;
|
||||||
view.setLayoutParams(mlp);
|
view.setLayoutParams(mlp);
|
||||||
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue