Mi2: add hint about font installation for text notifications
This commit is contained in:
parent
5d96df3508
commit
cf35e84feb
|
@ -44,6 +44,15 @@ public class MiBand2FWInstallHandler extends AbstractMiBandFWInstallHandler {
|
||||||
public void validateInstallation(InstallActivity installActivity, GBDevice device) {
|
public void validateInstallation(InstallActivity installActivity, GBDevice device) {
|
||||||
super.validateInstallation(installActivity, device);
|
super.validateInstallation(installActivity, device);
|
||||||
maybeAddFw53Hint(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) {
|
private void maybeAddFw53Hint(InstallActivity installActivity, GBDevice device) {
|
||||||
|
|
Loading…
Reference in New Issue