Bug fix.
This commit is contained in:
parent
e7abeb5ad9
commit
04e974b326
2 changed files with 5 additions and 3 deletions
|
@ -210,8 +210,7 @@ public class App extends Application {
|
|||
mNotificationManager.createNotificationChannel(mChannel);
|
||||
|
||||
// Set up notification channel for app update only if it's a github apk.
|
||||
|
||||
if (!BuildConfig.FLAVOR.equals(getString(R.string.app_flavor_github))) {
|
||||
if (BuildConfig.FLAVOR.equals(getString(R.string.app_flavor_github))) {
|
||||
|
||||
final String appUpdateId
|
||||
= getString(R.string.app_update_notification_channel_id);
|
||||
|
|
|
@ -7,6 +7,7 @@ import android.net.Uri;
|
|||
import android.os.AsyncTask;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.support.v4.app.NotificationManagerCompat;
|
||||
import android.util.Log;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
@ -34,7 +35,7 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> {
|
|||
protected void onPreExecute() {
|
||||
// Continue with version check only if the build variant is of type "github".
|
||||
if (!BuildConfig.FLAVOR.equals(app.getString(R.string.app_flavor_github))) {
|
||||
this.cancel(true);
|
||||
// this.cancel(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -102,6 +103,8 @@ public class CheckForNewAppVersionTask extends AsyncTask<Void, Void, String> {
|
|||
@Override
|
||||
protected void onPostExecute(String response) {
|
||||
|
||||
Log.i("Response--", response);
|
||||
|
||||
// Parse the json from the response.
|
||||
if (response != null) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue