Improve app update info

pull/189/head
Koitharu 4 years ago
parent b9244bd11a
commit 7f46ff6d72
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -295,7 +295,11 @@ class MainActivity :
navBar.getBadge(id)?.isVisible = false
} else {
val badge = navBar.getOrCreateBadge(id)
badge.number = counter
if (counter < 0) {
badge.clearNumber()
} else {
badge.number = counter
}
badge.isVisible = true
}
}

@ -87,7 +87,8 @@ class ToolsFragment :
binding.cardUpdate.root.isVisible = false
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
}

@ -359,4 +359,5 @@
<string name="options">Options</string>
<string name="not_found_404">Content not found or removed</string>
<string name="incognito_mode">Incognito mode</string>
<string name="app_update_available_s">Application update available: %s</string>
</resources>

Loading…
Cancel
Save