File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/src/main/java/vn/loitp/up/a/cv/wv
core/src/main/java/com/loitp/views/wv/superWebView Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import androidx.activity.addCallback
1616import androidx.core.view.isVisible
1717import androidx.webkit.WebSettingsCompat
1818import androidx.webkit.WebViewFeature
19+ import com.loitp.BuildConfig
1920import com.loitp.annotation.IsAutoAnimation
2021import com.loitp.annotation.IsFullScreen
2122import 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 (
You can’t perform that action at this time.
0 commit comments