Improve app update info
This commit is contained in:
@@ -295,7 +295,11 @@ class MainActivity :
|
|||||||
navBar.getBadge(id)?.isVisible = false
|
navBar.getBadge(id)?.isVisible = false
|
||||||
} else {
|
} else {
|
||||||
val badge = navBar.getOrCreateBadge(id)
|
val badge = navBar.getOrCreateBadge(id)
|
||||||
badge.number = counter
|
if (counter < 0) {
|
||||||
|
badge.clearNumber()
|
||||||
|
} else {
|
||||||
|
badge.number = counter
|
||||||
|
}
|
||||||
badge.isVisible = true
|
badge.isVisible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,8 @@ class ToolsFragment :
|
|||||||
binding.cardUpdate.root.isVisible = false
|
binding.cardUpdate.root.isVisible = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
binding.cardUpdate.textPrimary.text = getString(R.string.new_version_s, version.name)
|
binding.cardUpdate.textPrimary.text = getString(R.string.app_update_available_s, version.name)
|
||||||
|
binding.cardUpdate.textSecondary.text = version.description
|
||||||
binding.cardUpdate.root.isVisible = true
|
binding.cardUpdate.root.isVisible = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -359,4 +359,5 @@
|
|||||||
<string name="options">Options</string>
|
<string name="options">Options</string>
|
||||||
<string name="not_found_404">Content not found or removed</string>
|
<string name="not_found_404">Content not found or removed</string>
|
||||||
<string name="incognito_mode">Incognito mode</string>
|
<string name="incognito_mode">Incognito mode</string>
|
||||||
|
<string name="app_update_available_s">Application update available: %s</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user