From 920a0cc76ee0874a6f02c446517623b11fa49c84 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sat, 23 Nov 2019 13:53:53 +0100 Subject: [PATCH] OeffiMainActivity: Append version code and version flavor to HTTP request for messages. --- oeffi/src/de/schildbach/oeffi/OeffiMainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oeffi/src/de/schildbach/oeffi/OeffiMainActivity.java b/oeffi/src/de/schildbach/oeffi/OeffiMainActivity.java index 05b4ec3..550457f 100644 --- a/oeffi/src/de/schildbach/oeffi/OeffiMainActivity.java +++ b/oeffi/src/de/schildbach/oeffi/OeffiMainActivity.java @@ -374,6 +374,9 @@ public abstract class OeffiMainActivity extends OeffiActivity { final String installerPackageName = Installer.installerPackageName(this); if (installerPackageName != null) remoteUrl.addEncodedQueryParameter("installer", installerPackageName); + remoteUrl.addQueryParameter("version", Integer.toString(versionCode)); + if (flavor != null) + remoteUrl.addQueryParameter("flavor", flavor); remoteUrl.addQueryParameter("sdk", Integer.toString(Build.VERSION.SDK_INT)); remoteUrl.addQueryParameter("task", taskName()); final File localFile = new File(getFilesDir(), "messages.txt");