Added sync stopped? button

This commit is contained in:
M66B
2019-10-17 17:32:09 +02:00
parent 7d98136278
commit f360d2fc91
3 changed files with 22 additions and 0 deletions

View File

@@ -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,