diff --git a/app/src/main/kotlin/top/yukonga/update/logic/viewModel/MainViewModel.kt b/app/src/main/kotlin/top/yukonga/update/logic/viewModel/MainViewModel.kt index 44c0c20e..88ea1da0 100644 --- a/app/src/main/kotlin/top/yukonga/update/logic/viewModel/MainViewModel.kt +++ b/app/src/main/kotlin/top/yukonga/update/logic/viewModel/MainViewModel.kt @@ -12,6 +12,5 @@ class MainViewModel : ViewModel() { var bigversion: String? = null var officialDownload: String? = null var officialText: String? = null - var cdnDownload: String? = null var changelog: String? = null } diff --git a/app/src/main/kotlin/top/yukonga/update/ui/MainActivity.kt b/app/src/main/kotlin/top/yukonga/update/ui/MainActivity.kt index 143e489d..011cb0b6 100644 --- a/app/src/main/kotlin/top/yukonga/update/ui/MainActivity.kt +++ b/app/src/main/kotlin/top/yukonga/update/ui/MainActivity.kt @@ -189,9 +189,6 @@ class MainActivity : AppCompatActivity() { ) else getString(R.string.official2_link, recoveryRomInfo.currentRom.version, recoveryRomInfo.currentRom.filename) officialText = if (recoveryRomInfo.currentRom.md5 == recoveryRomInfo.latestRom?.md5) getString(R.string.official, "ultimateota") else getString(R.string.official, "bigota") - cdnDownload = if (recoveryRomInfo.currentRom.md5 == recoveryRomInfo.latestRom?.md5) getString( - R.string.cdn_link, recoveryRomInfo.currentRom.version, recoveryRomInfo.latestRom.filename - ) else getString(R.string.cdn_link, recoveryRomInfo.currentRom.version, recoveryRomInfo.currentRom.filename) changelog = log.toString().trimEnd() } } else { @@ -440,8 +437,6 @@ class MainActivity : AppCompatActivity() { officialDownload.setDownloadClickListener(mainViewModel.filename, mainViewModel.officialDownload!!) official.text = mainViewModel.officialText officialCopy.setCopyClickListener(mainViewModel.officialDownload) - cdnDownload.setDownloadClickListener(mainViewModel.filename, mainViewModel.cdnDownload!!) - cdnCopy.setCopyClickListener(mainViewModel.cdnDownload) } else { secondViewArray.forEach { if (it.isVisible) it.fadOutAnimation() diff --git a/app/src/main/res/layout-land/main_content.xml b/app/src/main/res/layout-land/main_content.xml index 901fadff..724d06a5 100644 --- a/app/src/main/res/layout-land/main_content.xml +++ b/app/src/main/res/layout-land/main_content.xml @@ -525,55 +525,6 @@ - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/main_content.xml b/app/src/main/res/layout/main_content.xml index fce3c8e7..e49ed62e 100644 --- a/app/src/main/res/layout/main_content.xml +++ b/app/src/main/res/layout/main_content.xml @@ -505,52 +505,6 @@ - - - - - - - - - - - - - - diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 76301fb9..e0a38d2e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -30,10 +30,8 @@ Using v2 interface Logged in Official (%1$s) - CDN (orig.bigota) https://ultimateota.d.miui.com/%1$s/%2$s https://bigota.d.miui.com/%1$s/%2$s - http://orig.bigota.d.miui.com/%1$s/%2$s Copy Download Failed to get security key