aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java b/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java
index 8da4d38d5..769451007 100644
--- a/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java
@@ -215,6 +215,12 @@ public class UpdaterActivity extends Activity {
UpdaterActivity.this.finish();
}
+ } else {
+ Toast.makeText(getApplicationContext(),
+ getText(R.string.failed),
+ Toast.LENGTH_LONG).show();
+ Log.d(Config.LOGTAG, "AppUpdater: contact to server not successfull");
+ UpdaterActivity.this.finish();
}
} catch (JSONException e) {
e.printStackTrace();
@@ -249,4 +255,4 @@ public class UpdaterActivity extends Activity {
@Override
public void onBackPressed() {
}
-} \ No newline at end of file
+}