Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmlToPDFLifecycleObserver unnecessary control ask #68

Open
benenesyildirim opened this issue Feb 6, 2025 · 0 comments
Open

xmlToPDFLifecycleObserver unnecessary control ask #68

benenesyildirim opened this issue Feb 6, 2025 · 0 comments

Comments

@benenesyildirim
Copy link

PDFGenerator.class: 420

                     if (xmlToPDFLifecycleObserver != null) {
                        xmlToPDFLifecycleObserver.setPdfSaveListener(uri -> {
                            writePDFOnSavedBlankPDFFile(document, uri);
                        });
                        Intent intent;
                        intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
                        intent.putExtra(Intent.EXTRA_TITLE, fileName);
                        intent.addCategory(Intent.CATEGORY_OPENABLE);
                        getPDFIntent(fileFinalResult, intent);
                        xmlToPDFLifecycleObserver.launchPDFSaverPicker(intent);
                    } else {
                        writePDF(document, fileFinalResult);
                    }

This code is not workinng for just opening to pdf. Because its not controlling what is the action. Its just looking for is xmlToPDFLifecycleObserver null or not. It need to check what action it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant