Skip to content

Commit

Permalink
Merge pull request #532 from martenrebane/MOPPAND-1319-2
Browse files Browse the repository at this point in the history
Fix opening files from ASICS containers
  • Loading branch information
Counter178 authored Sep 23, 2024
2 parents 9a05685 + ef94c64 commit 9246f7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ private Observable<DocumentsAddIntent> addDocumentsIntent() {
private Observable<DocumentViewIntent> documentViewIntent() {
return Observable.mergeArray(adapter.documentClicks()
.map(document -> DocumentViewIntent.confirmation(getContext(),
(nestedFile != null && isSivaConfirmed) ? nestedFile : containerFile, document)),
(nestedFile != null && SignedContainer.isContainer(getContext(), nestedFile) && isSivaConfirmed) ? nestedFile : containerFile, document)),
sivaConfirmationDialog.positiveButtonClicks()
.map(ignored -> DocumentViewIntent.open(
(nestedFile != null && isSivaConfirmed) ? nestedFile : containerFile,
Expand Down Expand Up @@ -791,7 +791,7 @@ public void onAttachedToWindow() {
disposables.add(adapter.scrollToTop().subscribe(ignored -> listView.scrollToPosition(0)));
disposables.add(adapter.documentSaveClicks().subscribe(document ->
documentSaveIntentSubject.onNext(DocumentSaveIntent
.create((nestedFile != null && isSivaConfirmed) ? nestedFile : containerFile, document, isSivaConfirmed))));
.create((nestedFile != null && SignedContainer.isContainer(getContext(), nestedFile) && isSivaConfirmed) ? nestedFile : containerFile, document, isSivaConfirmed))));
disposables.add(adapter.signatureClicks().subscribe(signature ->
signatureViewIntentSubject.onNext(SignatureViewIntent
.create(containerFile, signature, isSivaConfirmed))));
Expand Down

0 comments on commit 9246f7b

Please sign in to comment.