summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorMatt Holgate <matt@emobix.co.uk>2014-06-18 12:21:05 +0100
committerMatt Holgate <matt@emobix.co.uk>2014-06-18 12:21:05 +0100
commit38402bcf8dfea7b08cb5b3e6948af078d0b3874b (patch)
tree27041dd6493d691284aec11a118f7cf511ae5ca3 /platform/android
parent13e3327167cf47aa7c202ed83835bf43169ac8c1 (diff)
downloadmupdf-38402bcf8dfea7b08cb5b3e6948af078d0b3874b.tar.xz
Fix bug #695132: MuPDF Library throwing sporadic exception on Android
Android sometimes calls the 'getSelectedView()' method of an AdapterView. This can be made to happen more predicatably by enabling the Talkback accessibility feature. Remove the UnsupportedOperationException and just return null, as we the ReaderView does not have the concept of a selected page.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/ReaderView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/ReaderView.java b/platform/android/src/com/artifex/mupdfdemo/ReaderView.java
index c2093534..774c8dbe 100644
--- a/platform/android/src/com/artifex/mupdfdemo/ReaderView.java
+++ b/platform/android/src/com/artifex/mupdfdemo/ReaderView.java
@@ -667,7 +667,7 @@ public class ReaderView
@Override
public View getSelectedView() {
- throw new UnsupportedOperationException(getContext().getString(R.string.not_supported));
+ return null;
}
@Override