From 16f620d77c26b3afb6304a85b89915644caea472 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 28 Jan 2022 16:19:37 +0100 Subject: [PATCH] Scroll to manual --- .../main/java/eu/faircode/email/FragmentSetup.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 0cb53202b4..7ec0032dc8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -365,6 +365,17 @@ public class FragmentSetup extends FragmentBase { public void onClick(View v) { manual = !manual; updateManual(); + if (manual) + view.post(new Runnable() { + @Override + public void run() { + try { + scrollTo(R.id.ibManual, 0); + } catch (Throwable ex) { + Log.e(ex); + } + } + }); } });