Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1cc30c3 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Add more tips for TokenMismatchException

parent a300e3a9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -69,7 +69,9 @@ public class ExceptionDialogFragment extends AppCompatDialogFragment {

        for (Throwable t : throwables) {
            if (t instanceof TokenMismatchException) {
                adapter.add(R.string.error_dialog_tip_token_mismatch);
                adapter.add(R.string.error_dialog_tip_token_mismatch_retry);
                adapter.add(R.string.error_dialog_tip_token_mismatch_clear_storage);
                adapter.add(R.string.error_dialog_tip_clear_storage);
            } else if (t instanceof NextcloudFilesAppNotSupportedException) {
                adapter.add(R.string.error_dialog_tip_files_outdated);
            } else if (t instanceof NextcloudApiNotRespondingException) {
+3 −1
Original line number Diff line number Diff line
@@ -165,7 +165,9 @@
    <string name="simple_beta">Beta</string>
    <string name="could_not_copy_to_clipboard">Could not copy to clipboard</string>
    <string name="error_dialog_title">Oh no - What now? 🙁</string>
    <string name="error_dialog_tip_token_mismatch">Please try to clear the storage of both apps: Nextcloud and Nextcloud Notes to solve this issue.</string>
    <string name="error_dialog_tip_token_mismatch_retry">Please try to force close the app and restart it again. There might have been an odd connection to the Nextcloud app.</string>
    <string name="error_dialog_tip_token_mismatch_clear_storage">If the issue persists, try to clear the storage of both apps: Nextcloud and Nextcloud Notes to solve this issue.</string>
    <string name="error_dialog_tip_clear_storage">You can clear the storage by opening android settings → Apps → Nextcloud / Nextcloud Notes → Storage → Clear storage.</string>
    <string name="error_dialog_tip_files_outdated">Your Nextcloud app seems to be outdated. Please visit the Play Store or F-Droid to get the latest version.</string>
    <string name="error_dialog_tip_files_force_stop">Something seems to be wrong with your Nextcloud app. Please try to force stop both, the Nextcloud app and the Nextcloud Notes app.</string>
    <string name="error_dialog_tip_files_delete_storage">If force stopping them does not help, you can try to clear the storage of both apps.</string>