Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Oct 14, 2021
1 parent 2c2e944 commit c7b5c91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
//applicationId "info.plateaukao.einkbro.debug"
minSdkVersion 21
targetSdkVersion 30
versionCode 81701
versionName "8.17.1"
versionCode 81800
versionName "8.18.0"
vectorDrawables.useSupportLibrary = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,21 @@ class NinjaWebViewClient(
}

override fun onPageFinished(view: WebView, url: String) {
// skip translation pages
if (config.saveHistory && !ninjaWebView.incognito && !isTranslationDomain(url)) {
addHistoryAction(url)
if (config.boldFontStyle || config.fontStyleSerif || config.whiteBackground) {
ninjaWebView.updateCssStyle()
}
if (url.contains("facebook.com")) {
ninjaWebView.removeFBSponsoredPosts()
}
// lab: change css
if (config.boldFontStyle || config.fontStyleSerif || config.whiteBackground) {
ninjaWebView.updateCssStyle()
}
if (ninjaWebView.shouldHideTranslateContext) {
ninjaWebView.postDelayed({
ninjaWebView.hideTranslateContext()
}, 2000)
}
// skip translation pages
if (config.saveHistory && !ninjaWebView.incognito && !isTranslationDomain(url)) {
addHistoryAction(url)
}
dTLoadUrl?.printTime()
dTLoadUrl = null
}
Expand Down

0 comments on commit c7b5c91

Please sign in to comment.