File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/src/main/java/ru/voko/oracleplsql Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,21 @@ class MainActivity : AppCompatActivity() {
15
15
16
16
private lateinit var binding: ActivityMainBinding
17
17
18
+ @SuppressLint(" SetJavaScriptEnabled" )
18
19
override fun onCreate (savedInstanceState : Bundle ? ) {
19
20
super .onCreate(savedInstanceState)
20
21
binding = ActivityMainBinding .inflate(layoutInflater)
21
22
setContentView(binding.root)
22
23
23
24
binding.webView.webViewClient = MyWebViewClient ()
24
25
25
- val webSettings = binding.webView.settings
26
- @SuppressLint(" SetJavaScriptEnabled" )
27
- webSettings.javaScriptEnabled = true
26
+ binding.webView.apply {
27
+ with (settings) {
28
+ this .javaScriptEnabled = true
29
+ this .builtInZoomControls = true
30
+ this .displayZoomControls = false
31
+ }
32
+ }
28
33
29
34
if (savedInstanceState == null ) {
30
35
binding.webView.loadUrl(" file:///android_asset/index.html" )
You can’t perform that action at this time.
0 commit comments