mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huawei: Fix message during firmware update. Little cleanups
This commit is contained in:
+1
-9
@@ -120,8 +120,7 @@ public class HuaweiInstallHandler implements InstallHandler {
|
|||||||
this.valid = true; //NOTE: nothing to verify for now
|
this.valid = true; //NOTE: nothing to verify for now
|
||||||
|
|
||||||
if (device.isBusy()) {
|
if (device.isBusy()) {
|
||||||
LOG.error("Firmware cannot be uploaded (device busy)");
|
installActivity.setInfoText(device.getBusyTask());
|
||||||
installActivity.setInfoText("Firmware cannot be uploaded (device busy)");
|
|
||||||
installActivity.setInstallEnabled(false);
|
installActivity.setInstallEnabled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -153,7 +152,6 @@ public class HuaweiInstallHandler implements InstallHandler {
|
|||||||
|
|
||||||
installActivity.setInstallEnabled(true);
|
installActivity.setInstallEnabled(true);
|
||||||
|
|
||||||
|
|
||||||
LOG.debug("Initialized HuaweiInstallHandler: Firmware");
|
LOG.debug("Initialized HuaweiInstallHandler: Firmware");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -179,8 +177,6 @@ public class HuaweiInstallHandler implements InstallHandler {
|
|||||||
installItem.setName(description.title);
|
installItem.setName(description.title);
|
||||||
installActivity.setInstallItem(installItem);
|
installActivity.setInstallItem(installItem);
|
||||||
if (device.isBusy()) {
|
if (device.isBusy()) {
|
||||||
LOG.error("Watchface cannot be installed (device busy)");
|
|
||||||
installActivity.setInfoText("Watchface cannot be installed (device busy)");
|
|
||||||
installActivity.setInfoText(device.getBusyTask());
|
installActivity.setInfoText(device.getBusyTask());
|
||||||
installActivity.setInstallEnabled(false);
|
installActivity.setInstallEnabled(false);
|
||||||
return;
|
return;
|
||||||
@@ -223,8 +219,6 @@ public class HuaweiInstallHandler implements InstallHandler {
|
|||||||
installItem.setName(config.bundleName);
|
installItem.setName(config.bundleName);
|
||||||
installActivity.setInstallItem(installItem);
|
installActivity.setInstallItem(installItem);
|
||||||
if (device.isBusy()) {
|
if (device.isBusy()) {
|
||||||
LOG.error("App cannot be installed (device busy)");
|
|
||||||
installActivity.setInfoText("App cannot be installed (device busy)");
|
|
||||||
installActivity.setInfoText(device.getBusyTask());
|
installActivity.setInfoText(device.getBusyTask());
|
||||||
installActivity.setInstallEnabled(false);
|
installActivity.setInstallEnabled(false);
|
||||||
return;
|
return;
|
||||||
@@ -270,8 +264,6 @@ public class HuaweiInstallHandler implements InstallHandler {
|
|||||||
installItem.setName(helper.getFileName());
|
installItem.setName(helper.getFileName());
|
||||||
installActivity.setInstallItem(installItem);
|
installActivity.setInstallItem(installItem);
|
||||||
if (device.isBusy()) {
|
if (device.isBusy()) {
|
||||||
LOG.error("Music cannot be uploaded (device busy)");
|
|
||||||
installActivity.setInfoText("Music cannot be uploaded (device busy)");
|
|
||||||
installActivity.setInfoText(device.getBusyTask());
|
installActivity.setInfoText(device.getBusyTask());
|
||||||
installActivity.setInstallEnabled(false);
|
installActivity.setInstallEnabled(false);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user