Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
2e255e0c47
4
.idea/runConfigurations/app_base.xml
generated
4
.idea/runConfigurations/app_base.xml
generated
@ -1,6 +1,6 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="app_base" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
|
<configuration default="false" name="app_base" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
|
||||||
<module name="WMS_Native.app" />
|
<module name="WMS.app" />
|
||||||
<option name="DEPLOY" value="true" />
|
<option name="DEPLOY" value="true" />
|
||||||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
||||||
<option name="DEPLOY_AS_INSTANT" value="false" />
|
<option name="DEPLOY_AS_INSTANT" value="false" />
|
||||||
@ -8,7 +8,7 @@
|
|||||||
<option name="PM_INSTALL_OPTIONS" value="" />
|
<option name="PM_INSTALL_OPTIONS" value="" />
|
||||||
<option name="ALL_USERS" value="false" />
|
<option name="ALL_USERS" value="false" />
|
||||||
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
|
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
|
||||||
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="WMS_Native.dynamic_agricoper,WMS_Native.dynamic_frudis,WMS_Native.dynamic_gramm,WMS_Native.dynamic_ime,WMS_Native.dynamic_saporiveri,WMS_Native.dynamic_saporiveri_pv,WMS_Native.dynamic_vgalimenti,dynamic_frudis,dynamic_gramm,dynamic_ime,dynamic_saporiveri,dynamic_saporiveri_pv,dynamic_vgalimenti" />
|
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="WMS.dynamic_vgalimenti" />
|
||||||
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
|
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
|
||||||
<option name="MODE" value="default_activity" />
|
<option name="MODE" value="default_activity" />
|
||||||
<option name="CLEAR_LOGCAT" value="true" />
|
<option name="CLEAR_LOGCAT" value="true" />
|
||||||
|
|||||||
4
.idea/runConfigurations/app_vglimenti.xml
generated
4
.idea/runConfigurations/app_vglimenti.xml
generated
@ -1,6 +1,6 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="app_vglimenti" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
|
<configuration default="false" name="app_vglimenti" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
|
||||||
<module name="WMS_Native.app" />
|
<module name="WMS.app" />
|
||||||
<option name="DEPLOY" value="true" />
|
<option name="DEPLOY" value="true" />
|
||||||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
||||||
<option name="DEPLOY_AS_INSTANT" value="false" />
|
<option name="DEPLOY_AS_INSTANT" value="false" />
|
||||||
@ -8,7 +8,7 @@
|
|||||||
<option name="PM_INSTALL_OPTIONS" value="" />
|
<option name="PM_INSTALL_OPTIONS" value="" />
|
||||||
<option name="ALL_USERS" value="false" />
|
<option name="ALL_USERS" value="false" />
|
||||||
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
|
<option name="ALWAYS_INSTALL_WITH_PM" value="false" />
|
||||||
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="WMS_Native.dynamic__base,WMS_Native.dynamic_agricoper,WMS_Native.dynamic_frudis,WMS_Native.dynamic_gramm,WMS_Native.dynamic_ime,WMS_Native.dynamic_saporiveri,WMS_Native.dynamic_saporiveri_pv,dynamic__base,dynamic_frudis,dynamic_gramm,dynamic_ime,dynamic_saporiveri,dynamic_saporiveri_pv" />
|
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="WMS.dynamic__base" />
|
||||||
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
|
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
|
||||||
<option name="MODE" value="default_activity" />
|
<option name="MODE" value="default_activity" />
|
||||||
<option name="CLEAR_LOGCAT" value="true" />
|
<option name="CLEAR_LOGCAT" value="true" />
|
||||||
|
|||||||
@ -6,8 +6,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 239
|
def appVersionCode = 240
|
||||||
def appVersionName = '1.18.9'
|
def appVersionName = '1.18.10'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -136,13 +136,13 @@ public class PVOrdineAcquistoEditActivity extends BaseActivity {
|
|||||||
String text = "Stai per eliminare l'articolo <b> " + articoloOrdine.getDescrizione() + "</b> dall'ordine, <br> sei sicuro?";
|
String text = "Stai per eliminare l'articolo <b> " + articoloOrdine.getDescrizione() + "</b> dall'ordine, <br> sei sicuro?";
|
||||||
|
|
||||||
DialogSimpleMessageView.makeWarningDialog(new SpannableString(Html.fromHtml(text)), null, () -> this.runOnUiThread(() -> {
|
DialogSimpleMessageView.makeWarningDialog(new SpannableString(Html.fromHtml(text)), null, () -> this.runOnUiThread(() -> {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(this);
|
this.openProgress();
|
||||||
mhelper.removeArticoloFromOrdine(articoloOrdine, () -> {
|
mhelper.removeArticoloFromOrdine(articoloOrdine, () -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
BarcodeManager.enable();
|
BarcodeManager.enable();
|
||||||
runOnUiThread(this::fetchArticoli);
|
runOnUiThread(this::fetchArticoli);
|
||||||
}, e -> {
|
}, e -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
runOnUiThread(() -> UtilityExceptions.defaultException(this, e));
|
runOnUiThread(() -> UtilityExceptions.defaultException(this, e));
|
||||||
});
|
});
|
||||||
}), () -> {
|
}), () -> {
|
||||||
@ -159,16 +159,16 @@ public class PVOrdineAcquistoEditActivity extends BaseActivity {
|
|||||||
private void onScanSuccessful(BarcodeScanDTO dto) {
|
private void onScanSuccessful(BarcodeScanDTO dto) {
|
||||||
mBinding.closeActivityFab.close(false);
|
mBinding.closeActivityFab.close(false);
|
||||||
BarcodeManager.disable();
|
BarcodeManager.disable();
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(this);
|
this.openProgress();
|
||||||
mhelper.checkArticolo(
|
mhelper.checkArticolo(
|
||||||
mOrdine,
|
mOrdine,
|
||||||
dto.getStringValue(),
|
dto.getStringValue(),
|
||||||
articoloOrdine -> {
|
articoloOrdine -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
addArticolo(articoloOrdine);
|
addArticolo(articoloOrdine);
|
||||||
},
|
},
|
||||||
e -> {
|
e -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
handleException(e);
|
handleException(e);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -199,9 +199,9 @@ public class PVOrdineAcquistoEditActivity extends BaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void fetchArticoli() {
|
private void fetchArticoli() {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(this);
|
this.openProgress();
|
||||||
mhelper.loadArticoli(mOrdine, articoli -> {
|
mhelper.loadArticoli(mOrdine, articoli -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
mArticoli = articoli;
|
mArticoli = articoli;
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
mAdapter.updateItems(mArticoli);
|
mAdapter.updateItems(mArticoli);
|
||||||
@ -218,22 +218,22 @@ public class PVOrdineAcquistoEditActivity extends BaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void exportOrdine() {
|
public void exportOrdine() {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(this);
|
this.openProgress();
|
||||||
PVOrdiniAcquistoRESTConsumer.saveOrdine(mOrdine, mArticoli, mGriglia, (ordine) -> {
|
PVOrdiniAcquistoRESTConsumer.saveOrdine(mOrdine, mArticoli, mGriglia, (ordine) -> {
|
||||||
|
|
||||||
mOrdineRepository.updateOrder(ordine, ord -> {
|
mOrdineRepository.updateOrder(ordine, ord -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
Toast.makeText(this, "Ordine salvato con successo", Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, "Ordine salvato con successo", Toast.LENGTH_SHORT).show();
|
||||||
onBackPressed();
|
onBackPressed();
|
||||||
});
|
});
|
||||||
}, e -> runOnUiThread(() -> {
|
}, e -> runOnUiThread(() -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
UtilityExceptions.defaultException(this, e);
|
UtilityExceptions.defaultException(this, e);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
}, e -> runOnUiThread(() -> {
|
}, e -> runOnUiThread(() -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
UtilityExceptions.defaultException(this, e);
|
UtilityExceptions.defaultException(this, e);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
@ -247,16 +247,16 @@ public class PVOrdineAcquistoEditActivity extends BaseActivity {
|
|||||||
public void manualSearch(){
|
public void manualSearch(){
|
||||||
BarcodeManager.disable();
|
BarcodeManager.disable();
|
||||||
DialogSimpleInputHelper.makeInputDialog(this,"Inserisci il codice a barre/codice articolo da cercare",codice->{
|
DialogSimpleInputHelper.makeInputDialog(this,"Inserisci il codice a barre/codice articolo da cercare",codice->{
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(this);
|
this.openProgress();
|
||||||
mhelper.checkArticolo(
|
mhelper.checkArticolo(
|
||||||
mOrdine,
|
mOrdine,
|
||||||
codice,
|
codice,
|
||||||
articoloOrdine -> {
|
articoloOrdine -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
addArticolo(articoloOrdine);
|
addArticolo(articoloOrdine);
|
||||||
},
|
},
|
||||||
e -> {
|
e -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
handleException(e);
|
handleException(e);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -36,6 +36,7 @@ public class EditArticoloDialog {
|
|||||||
private ArticoloOrdine mSavedArt;
|
private ArticoloOrdine mSavedArt;
|
||||||
|
|
||||||
private boolean mLockedInput = false;
|
private boolean mLockedInput = false;
|
||||||
|
private Dialog mCurrentProgress;
|
||||||
|
|
||||||
|
|
||||||
public static Dialog make(Activity context, PVEditOrderHelper helper, ArticoloOrdine articolo, RunnableArgs<ArticoloOrdine> onDialogDismiss) {
|
public static Dialog make(Activity context, PVEditOrderHelper helper, ArticoloOrdine articolo, RunnableArgs<ArticoloOrdine> onDialogDismiss) {
|
||||||
@ -128,7 +129,7 @@ public class EditArticoloDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void saveAndExit() {
|
public void saveAndExit() {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(mContext);
|
this.openProgress();
|
||||||
try {
|
try {
|
||||||
float qtaOrd = Float.parseFloat(mBinding.qtaTot.getText().toString());
|
float qtaOrd = Float.parseFloat(mBinding.qtaTot.getText().toString());
|
||||||
if (qtaOrd <= 0) {
|
if (qtaOrd <= 0) {
|
||||||
@ -138,12 +139,12 @@ public class EditArticoloDialog {
|
|||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
mContext.runOnUiThread(() -> UtilityExceptions.defaultException(mContext, e));
|
mContext.runOnUiThread(() -> UtilityExceptions.defaultException(mContext, e));
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mHelper.saveArticoloToOrdine(mArticolo, () -> {
|
mHelper.saveArticoloToOrdine(mArticolo, () -> {
|
||||||
mSavedArt = mArticolo;
|
mSavedArt = mArticolo;
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
mDialog.dismiss();
|
mDialog.dismiss();
|
||||||
}, e -> mContext.runOnUiThread(() -> UtilityExceptions.defaultException(mContext, e)));
|
}, e -> mContext.runOnUiThread(() -> UtilityExceptions.defaultException(mContext, e)));
|
||||||
}
|
}
|
||||||
@ -157,4 +158,20 @@ public class EditArticoloDialog {
|
|||||||
mDialog.dismiss();
|
mDialog.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void openProgress() {
|
||||||
|
mContext.runOnUiThread(() -> {
|
||||||
|
if (this.mCurrentProgress == null) {
|
||||||
|
this.mCurrentProgress = UtilityProgress.createDefaultProgressDialog(mContext);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void closeProgress() {
|
||||||
|
mContext.runOnUiThread(() -> {
|
||||||
|
if (mCurrentProgress != null) {
|
||||||
|
mCurrentProgress.dismiss();
|
||||||
|
mCurrentProgress = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -55,6 +55,7 @@ public class PVOrdiniAcquistoGrigliaFragment extends Fragment implements ITitled
|
|||||||
private OrdineAcquistoPvHelper mHelper;
|
private OrdineAcquistoPvHelper mHelper;
|
||||||
private Griglia mGriglia;
|
private Griglia mGriglia;
|
||||||
private OrdineAcquistoPvOpenListAdapter mAdapter;
|
private OrdineAcquistoPvOpenListAdapter mAdapter;
|
||||||
|
private Dialog mCurrentProgress;
|
||||||
private final List<OrdineWrapper> mRenderedOrderList = new ArrayList<>();
|
private final List<OrdineWrapper> mRenderedOrderList = new ArrayList<>();
|
||||||
private boolean mRedirectToNewOrder = true;
|
private boolean mRedirectToNewOrder = true;
|
||||||
|
|
||||||
@ -80,7 +81,6 @@ public class PVOrdiniAcquistoGrigliaFragment extends Fragment implements ITitled
|
|||||||
.inject(this);
|
.inject(this);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PVOrdiniAcquistoGrigliaFragment newInstance() {
|
public static PVOrdiniAcquistoGrigliaFragment newInstance() {
|
||||||
@ -134,13 +134,13 @@ public class PVOrdiniAcquistoGrigliaFragment extends Fragment implements ITitled
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void fetchOrders() {
|
private void fetchOrders() {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(getActivity(), getString(R.string.ordini_a_aperti_progress));
|
this.openProgress();
|
||||||
|
|
||||||
mOrdineRepository.selectAllOpenOrders(mGriglia, (ordini) -> getActivity().runOnUiThread(() -> {
|
mOrdineRepository.selectAllOpenOrders(mGriglia, (ordini) -> getActivity().runOnUiThread(() -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
setOrdini(ordini);
|
setOrdini(ordini);
|
||||||
}), (e) -> {
|
}), (e) -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
String errorMessage = e.getMessage();
|
String errorMessage = e.getMessage();
|
||||||
getActivity().runOnUiThread(() -> DialogSimpleMessageView
|
getActivity().runOnUiThread(() -> DialogSimpleMessageView
|
||||||
.makeErrorDialog(new SpannableString(errorMessage), null, null)
|
.makeErrorDialog(new SpannableString(errorMessage), null, null)
|
||||||
@ -201,15 +201,15 @@ public class PVOrdiniAcquistoGrigliaFragment extends Fragment implements ITitled
|
|||||||
String text = "Stai per eliminare un ordine sei sicuro?";
|
String text = "Stai per eliminare un ordine sei sicuro?";
|
||||||
|
|
||||||
DialogSimpleMessageView.makeWarningDialog(new SpannableString(Html.fromHtml(text)), null, () -> getActivity().runOnUiThread(() -> {
|
DialogSimpleMessageView.makeWarningDialog(new SpannableString(Html.fromHtml(text)), null, () -> getActivity().runOnUiThread(() -> {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(getActivity());
|
this.openProgress();
|
||||||
mHelper.deleteOrder(ordine, () -> {
|
mHelper.deleteOrder(ordine, () -> {
|
||||||
getActivity().runOnUiThread(() -> {
|
getActivity().runOnUiThread(() -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
Toast.makeText(getActivity(), "Ordine eliminato!", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), "Ordine eliminato!", Toast.LENGTH_SHORT).show();
|
||||||
fetchOrders();
|
fetchOrders();
|
||||||
});
|
});
|
||||||
}, e -> {
|
}, e -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
getActivity().runOnUiThread(() -> UtilityExceptions.defaultException(getActivity(), e));
|
getActivity().runOnUiThread(() -> UtilityExceptions.defaultException(getActivity(), e));
|
||||||
});
|
});
|
||||||
}), () -> {
|
}), () -> {
|
||||||
@ -222,12 +222,15 @@ public class PVOrdiniAcquistoGrigliaFragment extends Fragment implements ITitled
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void createNewOrder() {
|
public void createNewOrder() {
|
||||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(getActivity(), getString(R.string.ordini_a_aperti_progress));
|
this.openProgress();
|
||||||
mHelper.createNewOrder(mGriglia, order -> {
|
mHelper.createNewOrder(mGriglia, order -> {
|
||||||
progress.dismiss();
|
this.closeProgress();
|
||||||
getActivity().runOnUiThread(() -> editOrdine(order));
|
getActivity().runOnUiThread(() -> editOrdine(order));
|
||||||
|
}, e -> getActivity().runOnUiThread(() -> {
|
||||||
}, e -> getActivity().runOnUiThread(() -> UtilityExceptions.defaultException(getActivity(), e, progress)));
|
UtilityExceptions.defaultException(getActivity(), e);
|
||||||
|
this.closeProgress();
|
||||||
|
}
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -256,4 +259,22 @@ public class PVOrdiniAcquistoGrigliaFragment extends Fragment implements ITitled
|
|||||||
public void addOnPreDestroy(Runnable onPreDestroy) {
|
public void addOnPreDestroy(Runnable onPreDestroy) {
|
||||||
this.mOnPreDestroyList.add(onPreDestroy);
|
this.mOnPreDestroyList.add(onPreDestroy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void openProgress() {
|
||||||
|
getActivity().runOnUiThread(() -> {
|
||||||
|
if (this.mCurrentProgress == null) {
|
||||||
|
this.mCurrentProgress = UtilityProgress.createDefaultProgressDialog(getActivity());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void closeProgress() {
|
||||||
|
getActivity().runOnUiThread(() -> {
|
||||||
|
if (mCurrentProgress != null) {
|
||||||
|
mCurrentProgress.dismiss();
|
||||||
|
mCurrentProgress = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,7 @@ public class DialogScanLisA {
|
|||||||
private Activity mContext;
|
private Activity mContext;
|
||||||
|
|
||||||
private BaseDialog mDialog;
|
private BaseDialog mDialog;
|
||||||
|
private Dialog mCurrentProgress;
|
||||||
|
|
||||||
private DialogScanCodiceGrigliaBinding mBinding;
|
private DialogScanCodiceGrigliaBinding mBinding;
|
||||||
|
|
||||||
@ -78,11 +79,11 @@ public class DialogScanLisA {
|
|||||||
private final RunnableArgs<BarcodeScanDTO> onScanSuccessfull = data -> {
|
private final RunnableArgs<BarcodeScanDTO> onScanSuccessfull = data -> {
|
||||||
BarcodeManager.disable();
|
BarcodeManager.disable();
|
||||||
|
|
||||||
final Dialog progressDialog = UtilityProgress.createDefaultProgressDialog(mContext);
|
this.openProgress();
|
||||||
Context context = mContext;
|
Context context = mContext;
|
||||||
RunnableArgs<Exception> mOnError = exception -> {
|
RunnableArgs<Exception> mOnError = exception -> {
|
||||||
mContext.runOnUiThread(() -> {
|
mContext.runOnUiThread(() -> {
|
||||||
progressDialog.dismiss();
|
this.closeProgress();
|
||||||
UtilityExceptions.defaultException(context, exception);
|
UtilityExceptions.defaultException(context, exception);
|
||||||
BarcodeManager.enable();
|
BarcodeManager.enable();
|
||||||
});
|
});
|
||||||
@ -90,7 +91,7 @@ public class DialogScanLisA {
|
|||||||
|
|
||||||
RunnableArgs<Griglia> onGrigliaAvailable = griglia -> {
|
RunnableArgs<Griglia> onGrigliaAvailable = griglia -> {
|
||||||
mContext.runOnUiThread(() -> {
|
mContext.runOnUiThread(() -> {
|
||||||
progressDialog.dismiss();
|
this.closeProgress();
|
||||||
mGriglia = griglia;
|
mGriglia = griglia;
|
||||||
mDialog.dismiss();
|
mDialog.dismiss();
|
||||||
});
|
});
|
||||||
@ -109,4 +110,20 @@ public class DialogScanLisA {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
protected void openProgress() {
|
||||||
|
mContext.runOnUiThread(() -> {
|
||||||
|
if (this.mCurrentProgress == null) {
|
||||||
|
this.mCurrentProgress = UtilityProgress.createDefaultProgressDialog(mContext);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void closeProgress() {
|
||||||
|
mContext.runOnUiThread(() -> {
|
||||||
|
if (mCurrentProgress != null) {
|
||||||
|
mCurrentProgress.dismiss();
|
||||||
|
mCurrentProgress = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user