diff --git a/app/src/main/java/org/schabi/newpipe/CheckForNewAppVersionTask.java b/app/src/main/java/org/schabi/newpipe/CheckForNewAppVersionTask.java index 13d399a1c..87ffcb05d 100644 --- a/app/src/main/java/org/schabi/newpipe/CheckForNewAppVersionTask.java +++ b/app/src/main/java/org/schabi/newpipe/CheckForNewAppVersionTask.java @@ -15,7 +15,6 @@ import android.preference.PreferenceManager; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; import android.util.Log; -import android.widget.Toast; import org.json.JSONException; import org.json.JSONObject; @@ -96,7 +95,6 @@ public class CheckForNewAppVersionTask extends AsyncTask { } 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; @@ -123,7 +121,6 @@ public class CheckForNewAppVersionTask extends AsyncTask { } 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(); } } }