mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +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 {
|
||||
view.setTranslationY(abh + offset);
|
||||
ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
mlp.bottomMargin = abh + offset;
|
||||
view.setLayoutParams(mlp);
|
||||
if (mlp.bottomMargin != abh + offset) {
|
||||
mlp.bottomMargin = abh + offset;
|
||||
view.setLayoutParams(mlp);
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue