Skip to content

Commit e9a3ef2

Browse files
sudeshim3Swati4star
authored andcommitted
$794 - Blocked morphed button touch when pdf is created successfully and restore on selecting new file. (#798)
1 parent 66d2abb commit e9a3ef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/swati4star/createpdf/fragment/ImageToPdfFragment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
350350
mNoOfImages.setVisibility(View.VISIBLE);
351351
showSnackbar(mActivity, R.string.snackbar_images_added);
352352
mCreatePdf.setEnabled(true);
353+
mCreatePdf.unblockTouch();
353354
}
354355
mMorphButtonUtility.morphToSquare(mCreatePdf, mMorphButtonUtility.integer());
355356
mOpenPdf.setVisibility(View.GONE);
@@ -767,6 +768,7 @@ public void onPDFCreated(boolean success, String path) {
767768
.setAction(R.string.snackbar_viewAction, v -> mFileUtils.openFile(mPath)).show();
768769
mOpenPdf.setVisibility(View.VISIBLE);
769770
mMorphButtonUtility.morphToSuccess(mCreatePdf);
771+
mCreatePdf.blockTouch();
770772
mPath = path;
771773
resetValues();
772774
}

0 commit comments

Comments
 (0)