diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java
index 6cbaa5612b..c48e2959ba 100644
--- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java
+++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java
@@ -122,7 +122,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private SwitchCompat swCleanupAttachments;
private Button btnCleanup;
private TextView tvLastCleanup;
- private Button btnApp;
private Button btnMore;
private SwitchCompat swProtocol;
private SwitchCompat swLogInfo;
@@ -268,7 +267,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swCleanupAttachments = view.findViewById(R.id.swCleanupAttachments);
btnCleanup = view.findViewById(R.id.btnCleanup);
tvLastCleanup = view.findViewById(R.id.tvLastCleanup);
- btnApp = view.findViewById(R.id.btnApp);
btnMore = view.findViewById(R.id.btnMore);
swProtocol = view.findViewById(R.id.swProtocol);
swLogInfo = view.findViewById(R.id.swLogInfo);
@@ -631,19 +629,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
});
- final Intent app = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
- app.setData(Uri.parse("package:" + getContext().getPackageName()));
- btnApp.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- try {
- getContext().startActivity(app);
- } catch (Throwable ex) {
- Helper.reportNoViewer(getContext(), app, ex);
- }
- }
- });
-
btnMore.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java
index 14ef37ef8e..cd776c77e4 100644
--- a/app/src/main/java/eu/faircode/email/FragmentSetup.java
+++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java
@@ -108,6 +108,8 @@ public class FragmentSetup extends FragmentBase {
private Button btnInbox;
+ private Button btnApp;
+
private Group grpInexactAlarms;
private Group grpBackgroundRestricted;
private Group grpDataSaver;
@@ -175,6 +177,8 @@ public class FragmentSetup extends FragmentBase {
btnInbox = view.findViewById(R.id.btnInbox);
+ btnApp = view.findViewById(R.id.btnApp);
+
grpInexactAlarms = view.findViewById(R.id.grpInexactAlarms);
grpBackgroundRestricted = view.findViewById(R.id.grpBackgroundRestricted);
grpDataSaver = view.findViewById(R.id.grpDataSaver);
@@ -541,6 +545,19 @@ public class FragmentSetup extends FragmentBase {
}
});
+ final Intent app = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
+ app.setData(Uri.parse("package:" + getContext().getPackageName()));
+ btnApp.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ try {
+ getContext().startActivity(app);
+ } catch (Throwable ex) {
+ Helper.reportNoViewer(getContext(), app, ex);
+ }
+ }
+ });
+
// Initialize
FragmentDialogTheme.setBackground(getContext(), view, false);
diff --git a/app/src/main/res/layout/fragment_options_misc.xml b/app/src/main/res/layout/fragment_options_misc.xml
index 7c99c84556..64d970adb1 100644
--- a/app/src/main/res/layout/fragment_options_misc.xml
+++ b/app/src/main/res/layout/fragment_options_misc.xml
@@ -497,18 +497,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCleanupHint" />
-
-
+ app:layout_constraintTop_toBottomOf="@id/tvLastCleanup" />
+
+