From 38402bcf8dfea7b08cb5b3e6948af078d0b3874b Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Wed, 18 Jun 2014 12:21:05 +0100 Subject: 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. --- platform/android/src/com/artifex/mupdfdemo/ReaderView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/android/src') 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 -- cgit v1.2.3