mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-10-22 20:55:44 +03:00
Enhance detection and add tips for Read timeouts
Signed-off-by: Stefan Niedermann <info@niedermann.it>
This commit is contained in:
parent
fc5e668bd6
commit
5b06023a51
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ public class TipsAdapter extends RecyclerView.Adapter<TipsViewHolder> {
|
||||||
if ("com.nextcloud.android.sso.QueryParam".equals(throwable.getMessage())) {
|
if ("com.nextcloud.android.sso.QueryParam".equals(throwable.getMessage())) {
|
||||||
add(R.string.error_dialog_min_version, new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.nextcloud.client"))
|
add(R.string.error_dialog_min_version, new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.nextcloud.client"))
|
||||||
.putExtra(INTENT_EXTRA_BUTTON_TEXT, R.string.error_action_update_files_app));
|
.putExtra(INTENT_EXTRA_BUTTON_TEXT, R.string.error_action_update_files_app));
|
||||||
|
} else if("Read timed out".equals(throwable.getMessage())) {
|
||||||
|
add(R.string.error_dialog_timeout_instance);
|
||||||
|
add(R.string.error_dialog_timeout_toggle, new Intent(Settings.ACTION_WIFI_SETTINGS).putExtra(INTENT_EXTRA_BUTTON_TEXT, R.string.error_action_open_network));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue