From e7ef17be7236b50c1ed03ae0a20c4bfaf739a157 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 11 Sep 2021 10:49:18 +0200 Subject: [PATCH] Peace --- .../eu/faircode/email/FragmentDialogStill.java | 9 +++++++++ app/src/main/res/layout/dialog_setup.xml | 15 +++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogStill.java b/app/src/main/java/eu/faircode/email/FragmentDialogStill.java index 5ba98f9f0c..a148f1a9dd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogStill.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogStill.java @@ -32,6 +32,7 @@ import android.view.LayoutInflater; import android.view.View; import android.widget.CheckBox; import android.widget.CompoundButton; +import android.widget.ImageButton; import android.widget.TextView; import androidx.annotation.NonNull; @@ -48,6 +49,7 @@ public class FragmentDialogStill extends FragmentDialogBase { View dview = LayoutInflater.from(context).inflate(R.layout.dialog_setup, null); TextView tvDozeDevice = dview.findViewById(R.id.tvDozeDevice); TextView tvDozeAndroid = dview.findViewById(R.id.tvDozeAndroid); + ImageButton ibInfo = dview.findViewById(R.id.ibInfo); CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain); Group grp2 = dview.findViewById(R.id.grp2); Group grp3 = dview.findViewById(R.id.grp3); @@ -60,6 +62,13 @@ public class FragmentDialogStill extends FragmentDialogBase { } }); + ibInfo.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Helper.view(v.getContext(), Uri.parse(Helper.DONTKILL_URI), true); + } + }); + cbNotAgain.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { diff --git a/app/src/main/res/layout/dialog_setup.xml b/app/src/main/res/layout/dialog_setup.xml index e89a05e67f..c5180d5d7c 100644 --- a/app/src/main/res/layout/dialog_setup.xml +++ b/app/src/main/res/layout/dialog_setup.xml @@ -112,6 +112,17 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvDozeDevice" /> + + + app:layout_constraintTop_toBottomOf="@id/ibInfo" /> + app:constraint_referenced_ids="three,title3,tvDoze,ibInfo" /> \ No newline at end of file