mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-16 07:57:38 +00:00
Update CheckForNewAppVersionTask.java
This commit is contained in:
@@ -15,7 +15,6 @@ import android.preference.PreferenceManager;
|
|||||||
import android.support.v4.app.NotificationCompat;
|
import android.support.v4.app.NotificationCompat;
|
||||||
import android.support.v4.app.NotificationManagerCompat;
|
import android.support.v4.app.NotificationManagerCompat;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
@@ -96,7 +95,6 @@ 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;
|
||||||
@@ -123,7 +121,6 @@ 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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user