From cb32714c82865623a3e2e91bfa03c5ea04b2d93e Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Wed, 1 Jul 2020 13:50:51 +0200 Subject: [PATCH] Battery optimization hints --- .../owncloud/notes/exception/ExceptionDialogFragment.java | 1 + app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+) 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 @@ We need the following technical information to help you: Please make sure you have installed and enabled the "Notes" app on your server. 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. + Please disable all battery optimizations for Nextcloud and the Notes app. Added "%1$s" Shared text was empty Append to note