Finish v1.32.07(347)

This commit is contained in:
Giuseppe Scorrano 2023-03-13 19:25:07 +01:00
commit 95807fbfbc
3 changed files with 12 additions and 7 deletions

View File

@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
android {
def appVersionCode = 346
def appVersionName = '1.32.06'
def appVersionCode = 347
def appVersionName = '1.32.07'
signingConfigs {
release {

View File

@ -280,6 +280,12 @@ public class DocInterniEditFormActivity extends BaseActivity implements DocInter
this.closeEdit();
}
@Override
public void onDocDeleted() {
this.binding.closeActivityFab.close(true);
this.closeEdit();
}
@Override
public void onDocExported() {
runOnUiThread(() -> {

View File

@ -115,14 +115,11 @@ public class DocInterniEditFormViewModel {
public void deleteDocument() {
this.sendOnLoadingStarted();
docInterniRESTConsumer.saveDoc(this.getSaveDto(), () -> {
SqlMtbColt document = this.getDocument();
document.setCodDtip(document.getCodDtipProvv());
mtbColtRepository.update(document, doc -> {
mtbColtRepository.delete(document, () -> {
this.sendOnLoadingEnded();
this.listener.onDocExported();
this.listener.onDocDeleted();
}, this::sendError);
}, this::sendError);
}
public void holdDocument() {
@ -341,6 +338,8 @@ public class DocInterniEditFormViewModel {
void onDocumentHoldRequest();
void onDocDeleted();
void onDocExported();
}