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 { android {
def appVersionCode = 346 def appVersionCode = 347
def appVersionName = '1.32.06' def appVersionName = '1.32.07'
signingConfigs { signingConfigs {
release { release {

View File

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

View File

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