我正在将 MUPDF 用于 Android 项目,但一些 Android 用户遇到了问题。我得到的报告如下:
java.lang.UnsupportedOperationException: Not supported
E/AndroidRuntime( 4677): at com.odilogy.mupdf.ReaderView.getSelectedView(ReaderView.java:664)
E/AndroidRuntime( 4677): at android.widget.AdapterView.onInitializeAccessibilityEvent(AdapterView.java:951)
E/AndroidRuntime( 4677): at android.widget.AdapterView.onRequestSendAccessibilityEvent(AdapterView.java:926)
E/AndroidRuntime( 4677): at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:704)
E/AndroidRuntime( 4677): at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:4952)
E/AndroidRuntime( 4677): at android.view.View.sendAccessibilityEventUnchecked(View.java:4933)
E/AndroidRuntime( 4677): at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:6675)
E/AndroidRuntime( 4677): at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime( 4677): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 4677): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 4677): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 4677): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4677): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 4677): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 4677): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 4677): at dalvik.system.NativeStart.main(Native Method)
此异常发生在这一行:
public View getSelectedView() {
throw new UnsupportedOperationException("Not supported");
}
我不知道如何解决这个问题,有人可以帮忙吗?谢谢!
Regards
刚刚修复:
public View getSelectedView() {
//throw new UnsupportedOperationException("Not supported");
return null;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)