Browse Source

替换完成后,不进行 reloadPages

luozhipeng 1 year 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(() -> {
                     CThreadPoolUtils.getInstance().executeMain(() -> {
                         try {
                         try {
                             if (replaceListener != null) {
                             if (replaceListener != null) {
-                                pdfView.getCPdfReaderView().reloadPages();
                                 replaceListener.onReplaceEnd();
                                 replaceListener.onReplaceEnd();
-                                readerView.getEditManager().onUndoRedoCallback(readerView.getPageNum(), false, false);
                             }
                             }
-                        } catch (Exception e) {
-                            //e.printStackTrace();
                         } finally {
                         } finally {
                             loadingDialog.dismiss();
                             loadingDialog.dismiss();
                             dismiss();
                             dismiss();