1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 00:50:32 +00:00

Update CheckForNewAppVersionTask.java

This commit is contained in:
Redirion 2019-06-25 13:39:47 +02:00 committed by GitHub
parent 05ef926a7f
commit 6a4bb6e3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
} }
} }
} }