mirror of https://github.com/M66B/FairEmail.git
Optimization
This commit is contained in:
parent
36f1077dbd
commit
599685cf18
|
@ -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();
|
||||||
mlp.bottomMargin = abh + offset;
|
if (mlp.bottomMargin != abh + offset) {
|
||||||
view.setLayoutParams(mlp);
|
mlp.bottomMargin = abh + offset;
|
||||||
|
view.setLayoutParams(mlp);
|
||||||
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue