Update CheckForNewAppVersionTask.java
This commit is contained in:
parent
37a9e98ebc
commit
fc8746e077
1 changed files with 0 additions and 3 deletions
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue