use of sugar.free.sightparser.handling.taskrunners.ReadConfigurationTaskRunner in project SightRemote by TebbeUbben.
the class ChangeActiveBRProfileActivity method statusChanged.
@Override
protected void statusChanged(Status status) {
if (status == Status.CONNECTED) {
showLoadingIndicator();
hideManualOverlay();
List<Short> blockIDs = new ArrayList<>();
blockIDs.add(BRProfile1Block.ID);
blockIDs.add(BRProfile2Block.ID);
blockIDs.add(BRProfile3Block.ID);
blockIDs.add(BRProfile4Block.ID);
blockIDs.add(BRProfile5Block.ID);
blockIDs.add(BRName1Block.ID);
blockIDs.add(BRName2Block.ID);
blockIDs.add(BRName3Block.ID);
blockIDs.add(BRName4Block.ID);
blockIDs.add(BRName5Block.ID);
blockIDs.add(ActiveProfileBlock.ID);
new ReadConfigurationTaskRunner(getServiceConnector(), blockIDs).fetch(this);
} else {
showManualOverlay();
hideLoadingIndicator();
if (confirmationDialog != null)
confirmationDialog.hide();
}
}
use of sugar.free.sightparser.handling.taskrunners.ReadConfigurationTaskRunner in project SightRemote by TebbeUbben.
the class EditBRProfileActivity method statusChanged.
@Override
protected void statusChanged(Status status) {
if (status == Status.CONNECTED) {
List<Short> ids = new ArrayList<>();
ids.add(MaxBRAmountBlock.ID);
ids.add(FactoryMinBRAmountBlock.ID);
ReadConfigurationTaskRunner taskRunner = new ReadConfigurationTaskRunner(getServiceConnector(), ids);
taskRunner.fetch(this);
hideManualOverlay();
showLoadingIndicator();
} else {
if (confirmationDialog != null)
confirmationDialog.hide();
showManualOverlay();
hideLoadingIndicator();
}
}
Aggregations