From 2d368d67f9015fce435b0708bbeb4a9a0785bf47 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Mon, 10 Oct 2022 20:50:28 +0200 Subject: [PATCH] Fix SDK nullability change for github flavour --- .../base/custom/activity/ActivityDelegateExtensions.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/github/java/com/mxt/anitrend/base/custom/activity/ActivityDelegateExtensions.kt b/app/src/github/java/com/mxt/anitrend/base/custom/activity/ActivityDelegateExtensions.kt index 0542e9629..e31692fdc 100644 --- a/app/src/github/java/com/mxt/anitrend/base/custom/activity/ActivityDelegateExtensions.kt +++ b/app/src/github/java/com/mxt/anitrend/base/custom/activity/ActivityDelegateExtensions.kt @@ -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(R.id.app_update_info) - mAppUpdateWidget.text = getString(R.string.app_update, remoteVersion.version) - mAppUpdateWidget.visibility = View.VISIBLE + .actionView?.findViewById(R.id.app_update_info) + mAppUpdateWidget?.text = getString(R.string.app_update, remoteVersion.version) + mAppUpdateWidget?.visibility = View.VISIBLE } else if (!silent) { onLatestUpdateInstalled() }