Update CheckForNewAppVersionTask.java

This commit is contained in:
Redirion 2019-06-26 18:37:04 +02:00 committed by GitHub
parent 37a9e98ebc
commit fc8746e077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -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<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;
@ -123,7 +121,6 @@ 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();
}
}
}