Fix thread scanBarcode in DialogInputQuantity
This commit is contained in:
parent
39dce4d23f
commit
66824fccb1
@ -255,9 +255,9 @@ public class DialogInputQuantityV2View extends BaseDialogFragment implements Dia
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final RunnableArgs<BarcodeScanDTO> onScanSuccessful = data -> {
|
private final RunnableArgs<BarcodeScanDTO> onScanSuccessful = data -> {
|
||||||
|
handler.post(() -> {
|
||||||
this.onLoadingStarted();
|
this.onLoadingStarted();
|
||||||
|
|
||||||
executorService.execute(() -> {
|
|
||||||
try {
|
try {
|
||||||
this.mViewModel.processBarcodeDTO(data);
|
this.mViewModel.processBarcodeDTO(data);
|
||||||
this.onLoadingEnded();
|
this.onLoadingEnded();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user