summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2012-08-14 10:12:41 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2012-08-14 10:12:41 +0100
commit0e1679bdfb9adaee44cb66f533558de1c031cd4a (patch)
treeba4e85767d59bc059f4d67f046991c05f7e581fc /android
parent37a61a128cad727af73707e02db176bce4c91d87 (diff)
downloadmupdf-0e1679bdfb9adaee44cb66f533558de1c031cd4a.tar.xz
Fix bug 693229: Mupdf/android has inconsistent search phrase highlighting
The highlights were unintentionally being cached between file invocations. In fact it was possible for the highlighting from one file to appear when opening another, even if those highlights didn't match words on the page. That could happen if both files happened to have been last opened on a common page (common in terms of page number).
Diffstat (limited to 'android')
-rw-r--r--android/src/com/artifex/mupdf/MuPDFActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdf/MuPDFActivity.java b/android/src/com/artifex/mupdf/MuPDFActivity.java
index aa2a9fac..14c189ae 100644
--- a/android/src/com/artifex/mupdf/MuPDFActivity.java
+++ b/android/src/com/artifex/mupdf/MuPDFActivity.java
@@ -149,6 +149,7 @@ public class MuPDFActivity extends Activity
}
}
core = openFile(Uri.decode(uri.getEncodedPath()));
+ SearchTaskResult.set(null);
}
if (core != null && core.needsPassword()) {
requestPassword(savedInstanceState);