Skip to content

Commit 2d368d6

Browse files
committed
Fix SDK nullability change for github flavour
1 parent d7900f0 commit 2d368d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/github/java/com/mxt/anitrend/base/custom/activity/ActivityDelegateExtensions.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ private fun MainActivity.onUpdateChecked(silent: Boolean, menuItems: Menu) {
4040
if (remoteVersion.isNewerVersion) {
4141
// If a new version of the application is available on GitHub
4242
val mAppUpdateWidget = menuItems.findItem(R.id.nav_check_update)
43-
.actionView.findViewById<TextView>(R.id.app_update_info)
44-
mAppUpdateWidget.text = getString(R.string.app_update, remoteVersion.version)
45-
mAppUpdateWidget.visibility = View.VISIBLE
43+
.actionView?.findViewById<TextView>(R.id.app_update_info)
44+
mAppUpdateWidget?.text = getString(R.string.app_update, remoteVersion.version)
45+
mAppUpdateWidget?.visibility = View.VISIBLE
4646
} else if (!silent) {
4747
onLatestUpdateInstalled()
4848
}

0 commit comments

Comments
 (0)