From f360d2fc9166e781ed9ff4a22dc0d8f47fe61ea4 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 17 Oct 2019 17:32:09 +0200 Subject: [PATCH] Added sync stopped? button --- .../main/java/eu/faircode/email/FragmentSetup.java | 9 +++++++++ app/src/main/res/layout/fragment_setup.xml | 12 ++++++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 22 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 9f64578243..3eb8fe51fd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -78,6 +78,7 @@ public class FragmentSetup extends FragmentBase { private TextView tvDozeDone; private Button btnDoze; private Button btnBattery; + private Button btnStopped; private Button btnDataSaver; @@ -123,6 +124,7 @@ public class FragmentSetup extends FragmentBase { tvDozeDone = view.findViewById(R.id.tvDozeDone); btnDoze = view.findViewById(R.id.btnDoze); btnBattery = view.findViewById(R.id.btnBattery); + btnStopped = view.findViewById(R.id.btnStopped); btnDataSaver = view.findViewById(R.id.btnDataSaver); @@ -229,6 +231,13 @@ public class FragmentSetup extends FragmentBase { } }); + btnStopped.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Helper.viewFAQ(getContext(), 16); + } + }); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { final Intent settings = new Intent( Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS, diff --git a/app/src/main/res/layout/fragment_setup.xml b/app/src/main/res/layout/fragment_setup.xml index 480e7ea97e..40228055b1 100644 --- a/app/src/main/res/layout/fragment_setup.xml +++ b/app/src/main/res/layout/fragment_setup.xml @@ -471,6 +471,18 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/btnDoze" /> +