mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Added sync stopped? button
This commit is contained in:
parent
7d98136278
commit
f360d2fc91
3 changed files with 22 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -471,6 +471,18 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/btnDoze" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnStopped"
|
||||
style="?android:attr/buttonStyleSmall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp"
|
||||
android:text="@string/title_setup_doze_stopped"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/btnDoze" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDataSaver"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -160,6 +160,7 @@
|
|||
<string name="title_setup_doze_remark">To continuously receive email (optional)</string>
|
||||
<string name="title_setup_doze_instructions">In the next dialog, select \"All apps\" at the top, select this app and select and confirm \"Don\'t optimize\"</string>
|
||||
<string name="title_setup_doze_battery">High battery usage?</string>
|
||||
<string name="title_setup_doze_stopped">Sync stopped?</string>
|
||||
<string name="title_setup_data">Data saver is enabled</string>
|
||||
<string name="title_setup_inbox">Go to messages</string>
|
||||
<string name="title_setup_to_do">To do</string>
|
||||
|
|
Loading…
Reference in a new issue