Updater: add changelog button

Add a changelog button in the menu toolbar throwing the user in
the recent changes page

Change-Id: I16609825c0662fc22b95189cbdf324a8c0b94f81
This commit is contained in:
meganukebmp
2018-02-05 07:05:50 +02:00
committed by Kristian Angelov
parent f62a57c463
commit 76b9f49684
4 changed files with 19 additions and 0 deletions

View File

@@ -155,6 +155,12 @@ public class Utils {
return serverUrl + "/v1/" + device + "/" + type + "/" + incrementalVersion;
}
public static String getChangelogURL(Context context) {
String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE,
SystemProperties.get(Constants.PROP_DEVICE));
return context.getString(R.string.menu_changelog_url, device);
}
public static void triggerUpdate(Context context, String downloadId) {
final Intent intent = new Intent(context, UpdaterService.class);
intent.setAction(UpdaterService.ACTION_INSTALL_UPDATE);