Fixed ProxyDialog not showing up

This commit is contained in:
tom5079
2020-09-27 15:09:19 +09:00
parent 86ee239c71
commit 1bd025e070
3 changed files with 3 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ android {
minSdkVersion 16
targetSdkVersion 30
versionCode 61
versionName "5.1.1"
versionName "5.1.1-hotfix1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}

View File

@@ -12,7 +12,7 @@
"filters": [],
"properties": [],
"versionCode": 61,
"versionName": "5.1.1",
"versionName": "5.1.1-hotfix1",
"enabled": true,
"outputFile": "app-release.apk"
}

View File

@@ -44,8 +44,7 @@ import java.net.Proxy
class ProxyDialog(context: Context) : AlertDialog(context) {
override fun onCreate(savedInstanceState: Bundle?) {
setContentView(build())
window?.attributes?.width = ViewGroup.LayoutParams.MATCH_PARENT
setView(build())
super.onCreate(savedInstanceState)
}