Update CheckForNewAppVersionTask.java
This commit is contained in:
parent
19dd8bae1f
commit
1640ca6381
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> {
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
// connectivity problems, do not alarm user and fail silently
|
// connectivity problems, do not alarm user and fail silently
|
||||||
if (DEBUG) Log.w(TAG, Log.getStackTraceString(ex));
|
if (DEBUG) Log.w(TAG, Log.getStackTraceString(ex));
|
||||||
|
Toast.makeText(app, R.string.error_connect_host, Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
@ -120,6 +121,7 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> {
|
||||||
} catch (JSONException ex) {
|
} catch (JSONException ex) {
|
||||||
// connectivity problems, do not alarm user and fail silently
|
// connectivity problems, do not alarm user and fail silently
|
||||||
if (DEBUG) Log.w(TAG, Log.getStackTraceString(ex));
|
if (DEBUG) Log.w(TAG, Log.getStackTraceString(ex));
|
||||||
|
Toast.makeText(app, R.string.error_connect_host, Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue