From 652c5575b393f0fb4177584aa9285dc75a305de5 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 2 Mar 2016 00:36:39 +0100 Subject: [PATCH] user ckChangeLog to display the Changelog There were other fancier libraries, but this one was so simple to integrate, that I could not resist ;) --- app/build.gradle | 1 + .../gadgetbridge/activities/ControlCenter.java | 6 ++++++ app/src/main/res/xml/changelog_master.xml | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 app/src/main/res/xml/changelog_master.xml diff --git a/app/build.gradle b/app/build.gradle index bca83ab59..508e1b82b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -50,6 +50,7 @@ dependencies { compile 'org.slf4j:slf4j-api:1.7.7' compile 'com.github.PhilJay:MPAndroidChart:v2.1.6' compile 'com.github.pfichtner:durationformatter:0.1.1' + compile 'de.cketti.library.changelog:ckchangelog:1.2.2' } check.dependsOn 'findbugs', 'pmd', 'lint' diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java index 2615f2827..408592c25 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java @@ -35,6 +35,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Set; +import de.cketti.library.changelog.ChangeLog; import nodomain.freeyourgadget.gadgetbridge.GBApplication; import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.activities.charts.ChartsActivity; @@ -177,6 +178,11 @@ public class ControlCenter extends Activity { checkAndRequestPermissions(); } + ChangeLog cl = new ChangeLog(this); + if (cl.isFirstRun()) { + cl.getLogDialog().show(); + } + GBApplication.deviceService().start(); enableSwipeRefresh(selectedDevice); diff --git a/app/src/main/res/xml/changelog_master.xml b/app/src/main/res/xml/changelog_master.xml new file mode 100644 index 000000000..51aac97f2 --- /dev/null +++ b/app/src/main/res/xml/changelog_master.xml @@ -0,0 +1,9 @@ + + + + Pebble: Install and start freshly-installed apps on the watch also in FW 3.x (now same behaviour as 2.x) + Pebble: Fix crash while receiving Health data + Mi Band 1S: Support for synchronizing activity data + Mi Band 1S: Support for reading the heart rate via the "Debug Screen" + +