From 36879215b40125d7ec02da7a8cfcfc85877fcd5b Mon Sep 17 00:00:00 2001 From: euxane Date: Wed, 18 Sep 2024 23:41:13 +0200 Subject: status/nodes: remove deprecated context call --- .../java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt index b4ec0fb..b96e5fb 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/status/nodes/NodeListFragment.kt @@ -76,7 +76,7 @@ class NodeListFragment : BaseFragment() { private fun showNodeInfo(nodeName: String) { val dialogTextViewBinding = StatusNodeInfoDialogBinding.inflate(layoutInflater) - AlertDialog.Builder(context!!) + AlertDialog.Builder(requireContext()) .setTitle(R.string.status_node_info_dialog_title) .setView(dialogTextViewBinding.root) .setPositiveButton(R.string.status_node_info_dialog_close_action) { _, _ -> Unit } -- cgit v1.2.3