Sha256: 495c55b20422073cbe75710c33e8527f0cf2316bbc9ce43266bfec6023111ae8
Contents?: true
Size: 662 Bytes
Versions: 18
Compression:
Stored size: 662 Bytes
Contents
package <%= package_name %>.util import android.webkit.WebView import androidx.appcompat.widget.Toolbar import androidx.core.content.ContextCompat import dev.hotwire.strada.Strada import <%= package_name %>.R import <%= package_name %>.strada.bridgeComponentFactories fun Toolbar.displayBackButtonAsCloseIcon() { navigationIcon = ContextCompat.getDrawable(context, R.drawable.ic_close) } val WebView.customUserAgent: String get() { val turboSubstring = "Turbo Native Android" val stradaSubstring = Strada.userAgentSubstring(bridgeComponentFactories) return "$turboSubstring; $stradaSubstring; ${settings.userAgentString}" }
Version data entries
18 entries across 9 versions & 1 rubygems