Skip to content

Commit 3e29638

Browse files
author
roy
committed
up
1 parent 9c9a8ff commit 3e29638

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/src/main/java/vn/loitp/up/a/cv/wv/MenuWebViewActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MenuWebViewActivity : BaseActivityFont() {
4242
}
4343
binding.btSuperWebView.setSafeOnClickListener {
4444
launchActivity(SuperWebViewActivity::class.java, data = {
45-
it.putExtra(SuperWebViewActivity.KEY_URL, "https://github.com/gj-loitp334envjdfv")
45+
it.putExtra(SuperWebViewActivity.KEY_URL, "https://github.com/gj-loitp")
4646
})
4747
}
4848
binding.btWebViewWrapContent.setSafeOnClickListener {

core/src/main/java/com/loitp/views/wv/superWebView/SuperWebViewActivity.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import androidx.activity.addCallback
1616
import androidx.core.view.isVisible
1717
import androidx.webkit.WebSettingsCompat
1818
import androidx.webkit.WebViewFeature
19+
import com.loitp.BuildConfig
1920
import com.loitp.annotation.IsAutoAnimation
2021
import com.loitp.annotation.IsFullScreen
2122
import com.loitp.annotation.LogTag
@@ -57,10 +58,10 @@ class SuperWebViewActivity : BaseActivityFont() {
5758
url = "https://github.com/roozbehzarei/SuperWebView"
5859
)
5960
})
60-
isVisible = true
61+
isVisible = BuildConfig.DEBUG
6162
setImageResource(com.loitp.R.drawable.ic_baseline_code_48)
6263
}
63-
this.tvTitle?.text = SuperWebViewActivity::class.java.simpleName
64+
// this.tvTitle?.text = SuperWebViewActivity::class.java.simpleName
6465
}
6566

6667
binding.webView.webViewClient = MyWebViewClient()
@@ -148,6 +149,7 @@ class SuperWebViewActivity : BaseActivityFont() {
148149
override fun onPageFinished(view: WebView?, url: String?) {
149150
super.onPageFinished(view, url)
150151
binding.progressIndicator.visibility = View.INVISIBLE
152+
binding.lActionBar.tvTitle?.text = view?.title ?: ""
151153
}
152154

153155
override fun onReceivedError(

0 commit comments

Comments
 (0)