Merge branch 'release/v1.29.8(312)'

This commit is contained in:
Giuseppe Scorrano 2022-10-06 17:00:08 +02:00
commit 46e438e0e9
5 changed files with 9 additions and 9 deletions

View File

@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
android {
def appVersionCode = 311
def appVersionName = '1.29.7'
def appVersionCode = 312
def appVersionName = '1.29.8'
signingConfigs {
release {

View File

@ -76,7 +76,7 @@ public abstract class BaseFragment extends Fragment {
if (progressOpened) {
this.progressOpened = false;
requireActivity().runOnUiThread(() -> {
mCurrentProgress.dismiss();
mCurrentProgress.dismissAllowingStateLoss();
});
}
}

View File

@ -215,9 +215,7 @@ public class RettificaGiacenzeFragment extends BaseFragment implements ITitledFr
private final RunnableArgs<BarcodeScanDTO> onScanSuccessful = data -> {
this.onLoadingStarted();
this.mViewModel.processBarcodeDTO(data, () -> {
this.onLoadingEnded();
});
this.mViewModel.processBarcodeDTO(data, this::onLoadingEnded);
};

View File

@ -51,10 +51,12 @@ public class DialogProgressView extends DialogFragment {
mBindings.progressBar.setIndeterminate(isIndeterminateProgress());
if (!isIndeterminateProgress()) mBindings.progressBar.setMax(100);
return new MaterialAlertDialogBuilder(requireContext())
var alertDialog = new MaterialAlertDialogBuilder(requireContext())
.setView(mBindings.getRoot())
.setCancelable(false)
.create();
alertDialog.setCanceledOnTouchOutside(false);
return alertDialog;
}
public String getTitle() {

View File

@ -5,7 +5,7 @@
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:cardCornerRadius="12dp"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">