mirror of
https://github.com/M66B/FairEmail.git
synced 2026-02-03 05:28:19 +01:00
Added auto optimize info button
This commit is contained in:
@@ -34,6 +34,7 @@ import android.view.ViewGroup;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
import android.widget.TimePicker;
|
||||
@@ -63,6 +64,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
private SwitchCompat swEnabled;
|
||||
private Spinner spPollInterval;
|
||||
private SwitchCompat swOptimize;
|
||||
private ImageButton ibOptimizeInfo;
|
||||
private RecyclerView rvExempted;
|
||||
private SwitchCompat swSchedule;
|
||||
private TextView tvSchedulePro;
|
||||
@@ -105,6 +107,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
swEnabled = view.findViewById(R.id.swEnabled);
|
||||
spPollInterval = view.findViewById(R.id.spPollInterval);
|
||||
swOptimize = view.findViewById(R.id.swOptimize);
|
||||
ibOptimizeInfo = view.findViewById(R.id.ibOptimizeInfo);
|
||||
swSchedule = view.findViewById(R.id.swSchedule);
|
||||
rvExempted = view.findViewById(R.id.rvExempted);
|
||||
tvSchedulePro = view.findViewById(R.id.tvSchedulePro);
|
||||
@@ -179,6 +182,13 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
}
|
||||
});
|
||||
|
||||
ibOptimizeInfo.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Helper.viewFAQ(getContext(), 39);
|
||||
}
|
||||
});
|
||||
|
||||
rvExempted.setHasFixedSize(false);
|
||||
LinearLayoutManager llm = new LinearLayoutManager(getContext());
|
||||
rvExempted.setLayoutManager(llm);
|
||||
|
||||
Reference in New Issue
Block a user