diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-06-18 12:21:05 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-06-18 12:21:05 +0100 |
commit | 38402bcf8dfea7b08cb5b3e6948af078d0b3874b (patch) | |
tree | 27041dd6493d691284aec11a118f7cf511ae5ca3 /platform/android/src/com/artifex/mupdfdemo/ReaderView.java | |
parent | 13e3327167cf47aa7c202ed83835bf43169ac8c1 (diff) | |
download | mupdf-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/src/com/artifex/mupdfdemo/ReaderView.java')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/ReaderView.java | 2 |
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 |