diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-01 14:50:51 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-01 14:50:51 +0300 |
commit | cb32714c82865623a3e2e91bfa03c5ea04b2d93e (patch) | |
tree | 987dd59359f1c2fb027a05fd070574bd4aa71ec0 /app | |
parent | 214b69ce9d76edd62079a948640e5a4f20496b43 (diff) |
Battery optimization hints
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionDialogFragment.java | 1 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionDialogFragment.java b/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionDialogFragment.java index 4760c07d..ec079906 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionDialogFragment.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionDialogFragment.java @@ -74,6 +74,7 @@ public class ExceptionDialogFragment extends AppCompatDialogFragment { } else if (t instanceof NextcloudFilesAppNotSupportedException) { adapter.add(R.string.error_dialog_tip_files_outdated); } else if (t instanceof NextcloudApiNotRespondingException) { + adapter.add(R.string.error_dialog_tip_disable_battery_optimizations); adapter.add(R.string.error_dialog_tip_files_force_stop); adapter.add(R.string.error_dialog_tip_files_delete_storage); } else if (t instanceof SocketTimeoutException || t instanceof ConnectException) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 22781bfb..a4c8ae34 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -182,6 +182,7 @@ <string name="error_dialog_we_need_info">We need the following technical information to help you:</string> <string name="error_dialog_server_app_enabled">Please make sure you have installed and enabled the "Notes" app on your server.</string> <string name="error_dialog_redirect">Your server did respond with a HTTP 302 status code, which implies, that you do not have installed the Notes app on your server or something is misconfigured. This can be caused by custom overrides in a .htaccess-file or by Nextcloud apps like OID Client.</string> + <string name="error_dialog_tip_disable_battery_optimizations">Please disable all battery optimizations for Nextcloud and the Notes app.</string> <string name="added_content">Added "%1$s"</string> <string name="shared_text_empty">Shared text was empty</string> <string name="append_to_note">Append to note</string> |