mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
Add clearer message for 501 error
This commit is contained in:
parent
3767cc765f
commit
f03dfe393b
@ -157,4 +157,5 @@
|
||||
<string name="force_full_sync_summary">On next sync, force changes in one direction</string>
|
||||
<string name="full_sync_confirmation">The requested change will require a full upload of the database when you next synchronize your collection. If you have reviews or other changes waiting on another device that haven\'t been synchronized here yet, they will be lost. Continue?</string>
|
||||
<string name="full_sync_confirmation_upgrade">Due to a bug in the previously installed version of AnkiDroid, it\'s recommended to force a full sync.</string>
|
||||
<string name="sync_error_501_upgrade_required">Please upgrade to the latest version of AnkiDroid</string>
|
||||
</resources>
|
||||
|
@ -1492,6 +1492,9 @@ public class DeckPicker extends NavigationDrawerActivity implements OnShowcaseEv
|
||||
if (result.length > 1 && result[1] instanceof Integer) {
|
||||
int type = (Integer) result[1];
|
||||
switch (type) {
|
||||
case 501:
|
||||
dialogMessage = res.getString(R.string.sync_error_501_upgrade_required);
|
||||
break;
|
||||
case 503:
|
||||
dialogMessage = res.getString(R.string.sync_too_busy);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user