mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-16 10:56:50 -04:00
#2194 Crash Report 3.3.3: ArrayIndexOutOfBoundsException: CoreReaderFragment.getCurrentWebView (CoreReaderFragment.java:932) - guard against negative values
This commit is contained in:
parent
d2e1273603
commit
a3822ad7b9
@ -928,7 +928,7 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
|
||||
@NotNull @Override public KiwixWebView getCurrentWebView() {
|
||||
if (webViewList.size() == 0) return newMainPageTab();
|
||||
if (currentWebViewIndex < webViewList.size()) {
|
||||
if (currentWebViewIndex < webViewList.size() && currentWebViewIndex > 0) {
|
||||
return webViewList.get(currentWebViewIndex);
|
||||
} else {
|
||||
return webViewList.get(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user