mirror of
https://github.com/2dust/v2rayNG.git
synced 2025-06-28 20:29:51 +00:00
Bug fix
This commit is contained in:
parent
ba03118a43
commit
597bd021b8
2 changed files with 3 additions and 4 deletions
|
@ -31,8 +31,7 @@ object UpdateCheckerManager {
|
|||
|
||||
val latestRelease = if (includePreRelease) {
|
||||
JsonUtil.fromJson(response, Array<GitHubRelease>::class.java)
|
||||
.filter { it.prerelease }
|
||||
.maxByOrNull { it.publishedAt }
|
||||
.firstOrNull()
|
||||
?: throw IllegalStateException("No pre-release found")
|
||||
} else {
|
||||
JsonUtil.fromJson(response, GitHubRelease::class.java)
|
||||
|
|
|
@ -105,11 +105,11 @@ class AboutActivity : BaseActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
//If it is the Google Play version, not be displayed within 2 days after update
|
||||
//If it is the Google Play version, not be displayed within 1 days after update
|
||||
if (Utils.isGoogleFlavor()) {
|
||||
val lastUpdateTime = AppManagerUtil.getLastUpdateTime(this)
|
||||
val currentTime = System.currentTimeMillis()
|
||||
if ((currentTime - lastUpdateTime) < 2 * 24 * 60 * 60 * 1000L) {
|
||||
if ((currentTime - lastUpdateTime) < 1 * 24 * 60 * 60 * 1000L) {
|
||||
binding.layoutCheckUpdate.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue