Skip to content

Commit

Permalink
Fix SDK nullability change for github flavour
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Oct 10, 2022
1 parent d7900f0 commit 2d368d6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ private fun MainActivity.onUpdateChecked(silent: Boolean, menuItems: Menu) {
if (remoteVersion.isNewerVersion) {
// If a new version of the application is available on GitHub
val mAppUpdateWidget = menuItems.findItem(R.id.nav_check_update)
.actionView.findViewById<TextView>(R.id.app_update_info)
mAppUpdateWidget.text = getString(R.string.app_update, remoteVersion.version)
mAppUpdateWidget.visibility = View.VISIBLE
.actionView?.findViewById<TextView>(R.id.app_update_info)
mAppUpdateWidget?.text = getString(R.string.app_update, remoteVersion.version)
mAppUpdateWidget?.visibility = View.VISIBLE
} else if (!silent) {
onLatestUpdateInstalled()
}
Expand Down

0 comments on commit 2d368d6

Please sign in to comment.