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

View File

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