Browse Source

替换完成后,不进行 reloadPages

luozhipeng 11 months ago
parent
commit
3808d63051

+ 0 - 4
ComPDFKit_Tools/src/main/java/com/compdfkit/tools/viewer/pdfsearch/CSearchResultDialogFragment.java

@@ -128,12 +128,8 @@ public class CSearchResultDialogFragment extends CBasicBottomSheetDialogFragment
                     CThreadPoolUtils.getInstance().executeMain(() -> {
                         try {
                             if (replaceListener != null) {
-                                pdfView.getCPdfReaderView().reloadPages();
                                 replaceListener.onReplaceEnd();
-                                readerView.getEditManager().onUndoRedoCallback(readerView.getPageNum(), false, false);
                             }
-                        } catch (Exception e) {
-                            //e.printStackTrace();
                         } finally {
                             loadingDialog.dismiss();
                             dismiss();