1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

Mi2: add hint about font installation for text notifications

This commit is contained in:
cpfeiffer 2017-03-14 23:54:56 +01:00
parent 5d96df3508
commit cf35e84feb

View File

@ -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) {