Upgrade sdk version to 30

This commit is contained in:
Shinokuni 2021-07-03 19:34:37 +02:00
parent 4251d1dc9f
commit 20ab973934
2 changed files with 6 additions and 6 deletions

View File

@ -97,8 +97,8 @@ class WebViewActivity : AppCompatActivity() {
super.onBackPressed() super.onBackPressed()
} }
override fun onOptionsItemSelected(item: MenuItem?): Boolean { override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item?.itemId) { when (item.itemId) {
android.R.id.home -> { android.R.id.home -> {
if (binding.webView.canGoBack()) if (binding.webView.canGoBack())
binding.webView.goBack() binding.webView.goBack()
@ -114,7 +114,7 @@ class WebViewActivity : AppCompatActivity() {
} }
} }
return super.onOptionsItemSelected(item!!) return super.onOptionsItemSelected(item)
} }
private fun shareLink() { private fun shareLink() {

View File

@ -27,10 +27,10 @@ allprojects {
} }
ext { ext {
compileSdkVersion = 29 compileSdkVersion = 30
minSdkVersion = 21 minSdkVersion = 21
targetSdkVersion = 29 targetSdkVersion = 30
buildToolsVersion = "29.0.3" buildToolsVersion = "30.0.3"
} }
task clean(type: Delete) { task clean(type: Delete) {