aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services/UpdateService.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-08-03 23:00:06 +0200
committerChristian Schneppe <christian@pix-art.de>2018-08-03 23:00:06 +0200
commit71aa88f3702aa293b35832956f9d38481deff47c (patch)
treeef775b2d66fc1a92c08c89bb63b40d88f8e077f2 /src/main/java/de/pixart/messenger/services/UpdateService.java
parent316b0203f8b68242ccd19bbf4f31e776fad5875a (diff)
some changes in Updater
Diffstat (limited to 'src/main/java/de/pixart/messenger/services/UpdateService.java')
-rw-r--r--src/main/java/de/pixart/messenger/services/UpdateService.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/de/pixart/messenger/services/UpdateService.java b/src/main/java/de/pixart/messenger/services/UpdateService.java
index 7e636b8e6..3b3829290 100644
--- a/src/main/java/de/pixart/messenger/services/UpdateService.java
+++ b/src/main/java/de/pixart/messenger/services/UpdateService.java
@@ -32,13 +32,13 @@ import static de.pixart.messenger.services.NotificationService.UPDATE_NOTIFICATI
public class UpdateService extends AsyncTask<String, Object, UpdateService.Wrapper> {
private boolean mUseTor;
private Context context;
- private boolean playstore;
+ private String store;
public UpdateService() {
}
- public UpdateService(Context context, boolean PlayStore, XmppConnectionService mXmppConnectionService) {
+ public UpdateService(Context context, String Store, XmppConnectionService mXmppConnectionService) {
this.context = context;
- this.playstore = PlayStore;
+ this.store = Store;
this.mUseTor = mXmppConnectionService.useTorToConnect();
}
@@ -94,7 +94,7 @@ public class UpdateService extends AsyncTask<String, Object, UpdateService.Wrapp
if (checkVersion(version, ownVersion) >= 1) {
Log.d(Config.LOGTAG, "AppUpdater: Version " + ownVersion + " should be updated to " + version);
UpdateAvailable = true;
- showNotification(url, changelog, version, filesize, playstore);
+ showNotification(url, changelog, version, filesize, store);
} else {
Log.d(Config.LOGTAG, "AppUpdater: Version " + ownVersion + " is up to date");
UpdateAvailable = false;
@@ -138,12 +138,12 @@ public class UpdateService extends AsyncTask<String, Object, UpdateService.Wrapp
});
}
- private void showNotification(String url, String changelog, String version, String filesize, boolean playstore) {
+ private void showNotification(String url, String changelog, String version, String filesize, String store) {
Intent intent = new Intent(context, UpdaterActivity.class);
intent.putExtra("update", "PixArtMessenger_UpdateService");
intent.putExtra("url", url);
intent.putExtra("changelog", changelog);
- intent.putExtra("playstore", playstore);
+ intent.putExtra("store", store);
PendingIntent pi = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
final NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context);