From f2b6ad793ed7432b1e4296e26f64ee5136d8357c Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 23 May 2024 22:50:41 +0200 Subject: [PATCH] Fixed jitter on hiding action bar --- app/src/main/java/eu/faircode/email/ActivityBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index 46204ffd91..214e13844e 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -146,8 +146,9 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc @Override public void onOffsetChanged(AppBarLayout appBarLayout, int offset) { try { + view.setTranslationY(abh + offset); ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); - mlp.topMargin = abh + offset; + mlp.bottomMargin = abh + offset; view.setLayoutParams(mlp); } catch (Throwable ex) { Log.e(ex);