mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-22 15:47:58 +01:00
Added sync stopped? button
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user