corretto bug sul progressDialog
This commit is contained in:
parent
bfc02a7d48
commit
57fa738c59
@ -211,6 +211,7 @@ public class DocInterniEditFormActivity extends BaseActivity implements DocInter
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEditRowRequest(SqlMtbColr row, boolean flagTracciabilita) {
|
public void onEditRowRequest(SqlMtbColr row, boolean flagTracciabilita) {
|
||||||
|
this.onLoadingStarted();
|
||||||
MtbAart mtbAart = new MtbAart();
|
MtbAart mtbAart = new MtbAart();
|
||||||
mtbAart.setBarCode(row.getCodBarre());
|
mtbAart.setBarCode(row.getCodBarre());
|
||||||
mtbAart.setDiacod(row.getCodBarre());
|
mtbAart.setDiacod(row.getCodBarre());
|
||||||
@ -244,7 +245,6 @@ public class DocInterniEditFormActivity extends BaseActivity implements DocInter
|
|||||||
}
|
}
|
||||||
return partitaMag;
|
return partitaMag;
|
||||||
});
|
});
|
||||||
|
|
||||||
DialogInputQuantityV2View
|
DialogInputQuantityV2View
|
||||||
.newInstance(dialogInputQuantityV2DTO, (resultDTO, shouldCloseLU) -> {
|
.newInstance(dialogInputQuantityV2DTO, (resultDTO, shouldCloseLU) -> {
|
||||||
this.onLoadingStarted();
|
this.onLoadingStarted();
|
||||||
|
|||||||
@ -125,9 +125,7 @@ public class DocInterniEditFormViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onSearch(String search) {
|
public void onSearch(String search) {
|
||||||
this.sendOnLoadingStarted();
|
|
||||||
GrigliaAcquistiChildDTO articolo = this.searchArticolo(search);
|
GrigliaAcquistiChildDTO articolo = this.searchArticolo(search);
|
||||||
this.sendOnLoadingEnded();
|
|
||||||
if (articolo == null) {
|
if (articolo == null) {
|
||||||
this.sendError(new Exception("Nessun articolo corrispondente al codice fornito!"));
|
this.sendError(new Exception("Nessun articolo corrispondente al codice fornito!"));
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -159,6 +159,7 @@ public class DialogInputQuantityV2View extends BaseDialogFragment implements Dia
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.onLoadingEnded();
|
||||||
return mBindings.getRoot();
|
return mBindings.getRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user