Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-07-01 14:54:04 +0300
committerStefan Niedermann <info@niedermann.it>2020-07-01 14:54:04 +0300
commit3218a8695b1106edffbea0f98d33e098afe02c31 (patch)
treefdf8ab2a5ce641a5333f68a05810a8b5b49c3ab6 /app/src/main
parent8566634f56109baf392da56324072417321c2b18 (diff)
Battery optimization hints
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/ui/exception/ExceptionDialogFragment.java1
-rw-r--r--app/src/main/res/values/strings.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/exception/ExceptionDialogFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/exception/ExceptionDialogFragment.java
index 9ab9b70c8..ca8f37e35 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/exception/ExceptionDialogFragment.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/exception/ExceptionDialogFragment.java
@@ -85,6 +85,7 @@ public class ExceptionDialogFragment extends AppCompatDialogFragment {
} else if (throwable instanceof NextcloudFilesAppNotSupportedException) {
adapter.add(R.string.error_dialog_tip_files_outdated);
} else if (throwable 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 (throwable instanceof SocketTimeoutException || throwable instanceof ConnectException) {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2d0867b74..896604e5f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -256,6 +256,7 @@
<string name="error_dialog_version_not_parsable">We could not determine the version of the server side Deck app. Please make sure it is installed and enabled.</string>
<string name="error_dialog_capabilities_not_parsable">We could not fetch the capabilities of your server. Please make sure your server is running well and other client apps are able to access Nextcloud.</string>
<string name="error_dialog_attachment_upload_failed">An attachment could not be uploaded. Please try to share it on another way and let us know about this bug.</string>
+ <string name="error_dialog_tip_disable_battery_optimizations">Please disable all battery optimizations for Nextcloud and the Deck app.</string>
<string name="error_action_open_deck_info">Open App info</string>
<string name="error_action_open_network">Network settings</string>
<string name="error_action_server_logs">Server logs</string>