Skip to content

Commit 42ce16a

Browse files
committed
Fix jump content after click by webview
1 parent 720ee15 commit 42ce16a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/four/pda/ui/article/one/ArticleFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
230230
}
231231
});
232232
webView.loadData(getFormattedText(article.getContent()), "text/html; charset=utf-8", null);
233+
webView.requestFocus();
233234
}
234235

235236
private boolean isGalleryImage(List<String> images, String url) {

0 commit comments

Comments
 (0)