Skip to content

Commit

Permalink
Merge pull request #462 from mysteriumnetwork/bugfix/Imcrease-API-ver…
Browse files Browse the repository at this point in the history
…sion

Increase API version, fix error after that
  • Loading branch information
ArtemHryhorovGeniusee authored Nov 9, 2021
2 parents a773255 + 53dc93b commit 398448d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions android/app/src/main/java/updated/mysterium/vpn/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ class App : Application(), LifecycleObserver {
super.attachBaseContext(onAttach(base ?: applicationContext))
}

override fun onConfigurationChanged(newConfig: Configuration?) {
newConfig?.let {
onAttach(this)
super.onConfigurationChanged(newConfig)
}
override fun onConfigurationChanged(newConfig: Configuration) {
onAttach(this)
super.onConfigurationChanged(newConfig)
}

private fun setupIntercom() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import android.net.VpnService
import android.os.Bundle
import android.view.Gravity
import android.view.View
import android.widget.TextView
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatDelegate
Expand Down Expand Up @@ -187,7 +186,7 @@ class SplashActivity : BaseActivity() {
getString(R.string.error_vpn_permission),
Toast.LENGTH_LONG
).apply {
(view.findViewById<View>(android.R.id.message) as TextView).gravity = Gravity.CENTER
setGravity(Gravity.CENTER, 0, 0)
}.show()
}

Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ buildscript {
ext {
buildToolsVersion = "30.0.3"
minSdkVersion = 24
compileSdkVersion = 29
targetSdkVersion = 29
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = '21.4.7075529' // r21e - https://developer.android.com/ndk/downloads#lts-downloads
}
repositories {
Expand Down

0 comments on commit 398448d

Please sign in to comment.