mirror of
https://github.com/moparisthebest/android-app
synced 2024-11-15 05:15:04 -05:00
show error messages when feed downloading is not successful.
This commit is contained in:
parent
cb2c1dc04b
commit
231f4c0efb
@ -497,8 +497,15 @@ public class Poche extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
showToast(getString(R.string.txtSyncDone));
|
||||
} else {
|
||||
// HTTP Connection not successful
|
||||
if (urlConnection == null) {
|
||||
showErrorMessage(getString(R.string.error_feed));
|
||||
} else {
|
||||
showErrorMessage(getString(R.string.error_feed) + ":\n" + urlConnection.getResponseCode() + " " + urlConnection.getResponseMessage());
|
||||
}
|
||||
}
|
||||
updateUnread();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
@ -20,4 +20,5 @@
|
||||
<string name="txtAPIUsername"><b><u>Deine User ID:</u></b></string>
|
||||
<string name="txtAPIToken"><b><u>Dein Token:</u></b></string>
|
||||
<string name="error">Fehler</string>
|
||||
<string name="error_feed">Fehler beim laden des Feeds</string>
|
||||
</resources>
|
||||
|
@ -20,4 +20,5 @@
|
||||
<string name="txtAPIUsername"><b><u>Your User ID:</u></b></string>
|
||||
<string name="txtAPIToken"><b><u>Your Token:</u></b></string>
|
||||
<string name="error">Error</string>
|
||||
<string name="error_feed">Error loading feed</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user