From cf35e84feb17a69368c1be23d428953667abfa6c Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Tue, 14 Mar 2017 23:54:56 +0100 Subject: [PATCH] Mi2: add hint about font installation for text notifications --- .../devices/miband2/MiBand2FWInstallHandler.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband2/MiBand2FWInstallHandler.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband2/MiBand2FWInstallHandler.java index 8ea09a15..862bbfed 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband2/MiBand2FWInstallHandler.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband2/MiBand2FWInstallHandler.java @@ -44,6 +44,15 @@ public class MiBand2FWInstallHandler extends AbstractMiBandFWInstallHandler { public void validateInstallation(InstallActivity installActivity, GBDevice device) { super.validateInstallation(installActivity, device); maybeAddFw53Hint(installActivity, device); + maybeAddFontHint(installActivity); + } + + private void maybeAddFontHint(InstallActivity installActivity) { + FirmwareType type = getFirmwareType(); + if (type == FirmwareType.FIRMWARE) { + String newInfoText = installActivity.getInfoText() + "\n\n" + "Note: you may install Mili_pro.ft or Mili_pro.ft.en to enable text notifications."; + installActivity.setInfoText(newInfoText); + } } private void maybeAddFw53Hint(InstallActivity installActivity, GBDevice device) {