Skip to content

Commit

Permalink
ReVancedUpdater: Fix X card
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Ledda <[email protected]>
  • Loading branch information
LeddaZ committed Apr 21, 2024
1 parent 3904a5d commit 2e46fa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/it/leddaz/revancedupdater/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ class MainActivity : AppCompatActivity() {
getString(R.string.installed_app_version, installedVersion.version)
} else if (packageName == X_PACKAGE) {
installedVersion.version = pInfo.versionName.substringBefore('-')
installedTextView.text =
getString(R.string.installed_app_version, installedVersion.version)
} else {
installedVersion.version = pInfo.versionName
installedTextView.text =
Expand Down Expand Up @@ -462,7 +464,7 @@ class MainActivity : AppCompatActivity() {
updateStatusTextView.text = getString(R.string.update_available)
button.isEnabled = true
} else if (installedVersion.compareTo(latestVersion) == 0) {
if (packageName != GMSCORE_PACKAGE && packageName != UPDATER_PACKAGE) {
if (packageName != GMSCORE_PACKAGE && packageName != UPDATER_PACKAGE && packageName != X_PACKAGE) {
var latestHash = getLatestReVancedHash()
if (packageName == MUSIC_PACKAGE)
latestHash = getLatestReVancedMusicHash()
Expand Down

0 comments on commit 2e46fa7

Please sign in to comment.