mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-11-08 11:13:00 +00:00
Update CheckForNewAppVersionTask.java
This commit is contained in:
@@ -94,6 +94,7 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> {
|
||||
} catch (IOException ex) {
|
||||
// connectivity problems, do not alarm user and fail silently
|
||||
if (DEBUG) Log.w(TAG, Log.getStackTraceString(ex));
|
||||
Toast.makeText(app, R.string.error_connect_host, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -120,6 +121,7 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> {
|
||||
} catch (JSONException ex) {
|
||||
// connectivity problems, do not alarm user and fail silently
|
||||
if (DEBUG) Log.w(TAG, Log.getStackTraceString(ex));
|
||||
Toast.makeText(app, R.string.error_connect_host, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user