diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java b/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java
index c37af668c0..4a76e02088 100644
--- a/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java
+++ b/app/src/main/java/eu/faircode/email/FragmentOptionsSynchronize.java
@@ -69,6 +69,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
private View view;
private ImageButton ibHelp;
private SwitchCompat swEnabled;
+ private Button btnBlockedSenders;
+
private SwitchCompat swOptimize;
private ImageButton ibOptimizeInfo;
private Spinner spPollInterval;
@@ -84,7 +86,6 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
private CheckBox[] cbDay;
private TextView tvScheduleIgnore;
private ImageButton ibSchedules;
- private Button btnBlockedSenders;
private SwitchCompat swQuickSyncImap;
private SwitchCompat swQuickSyncPop;
@@ -156,6 +157,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
ibHelp = view.findViewById(R.id.ibHelp);
swEnabled = view.findViewById(R.id.swEnabled);
+ btnBlockedSenders = view.findViewById(R.id.btnBlockedSenders);
+
swOptimize = view.findViewById(R.id.swOptimize);
ibOptimizeInfo = view.findViewById(R.id.ibOptimizeInfo);
spPollInterval = view.findViewById(R.id.spPollInterval);
@@ -180,7 +183,6 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
};
tvScheduleIgnore = view.findViewById(R.id.tvScheduleIgnore);
ibSchedules = view.findViewById(R.id.ibSchedules);
- btnBlockedSenders = view.findViewById(R.id.btnBlockedSenders);
swQuickSyncImap = view.findViewById(R.id.swQuickSyncImap);
swQuickSyncPop = view.findViewById(R.id.swQuickSyncPop);
@@ -234,6 +236,15 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
}
});
+ btnBlockedSenders.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
+ lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_MANAGE_LOCAL_CONTACTS)
+ .putExtra("junk", true));
+ }
+ });
+
swOptimize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
@@ -344,15 +355,6 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
}
});
- btnBlockedSenders.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
- lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_MANAGE_LOCAL_CONTACTS)
- .putExtra("junk", true));
- }
- });
-
swQuickSyncImap.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
diff --git a/app/src/main/res/layout/fragment_options_synchronize.xml b/app/src/main/res/layout/fragment_options_synchronize.xml
index 46fa7e5893..ba0fcbd2f6 100644
--- a/app/src/main/res/layout/fragment_options_synchronize.xml
+++ b/app/src/main/res/layout/fragment_options_synchronize.xml
@@ -99,6 +99,18 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swEnabled" />
+
+
@@ -449,18 +461,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbDay6" />
-
-