mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-27 05:23:00 +00:00
fixed array value
This commit is contained in:
parent
ecdcf72ed1
commit
1cf13d2d0e
4 changed files with 9 additions and 9 deletions
|
@ -72,15 +72,15 @@
|
|||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debug/out" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kaptKotlin/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/out" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/out" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debugAndroidTest" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugAndroidTest/out" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debugAndroidTest" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debugUnitTest" isTestSource="true" generated="true" />
|
||||
|
|
|
@ -85,7 +85,7 @@ class HomeFragment : Home() {
|
|||
GetJson().AsJSONObject("https://vanced.app/api/v1/microg.json")
|
||||
.get("versionCode").asInt
|
||||
|
||||
if (variant == "Nonroot") {
|
||||
if (variant == "nonroot") {
|
||||
val microginstallbtn =
|
||||
view?.findViewById<MaterialButton>(R.id.microg_installbtn)
|
||||
microginstallbtn?.visibility = View.VISIBLE
|
||||
|
|
|
@ -55,14 +55,14 @@ open class HomeViewModel(application: Application): AndroidViewModel(application
|
|||
|
||||
val vancedVersion: String =
|
||||
if (isConnected)
|
||||
GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/vanced.json")
|
||||
GetJson().AsJSONObject("https://vanced.app/api/v1/vanced.json")
|
||||
.get("version").asString
|
||||
else
|
||||
application.getString(R.string.unavailable)
|
||||
|
||||
val microgVersion: String =
|
||||
if (isConnected)
|
||||
GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/microg.json")
|
||||
GetJson().AsJSONObject("https://vanced.app/api/v1/microg.json")
|
||||
.get("version").asString
|
||||
else
|
||||
application.getString(R.string.unavailable)
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
</string-array>
|
||||
|
||||
<string-array name="vanced_variant_values">
|
||||
<item>Nonroot</item>
|
||||
<item>Root</item>
|
||||
<item>nonroot</item>
|
||||
<item>root</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="syke">
|
||||
|
|
Loading…
Reference in a new issue