Skip to content

xmlToPDFLifecycleObserver unnecessary control ask #68

Open
@benenesyildirim

Description

@benenesyildirim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions