From 4b2aa927f8ea1a027bdfa7bc464a6b6bd7acb419 Mon Sep 17 00:00:00 2001 From: euxane Date: Wed, 18 Sep 2024 23:41:13 +0200 Subject: fragments/tools: replace deprecated parent fragment manager call --- .../java/org/pacien/tincapp/activities/configure/ToolsFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/org/pacien/tincapp/activities/configure/ToolsFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/configure/ToolsFragment.kt index 6eef66d..ff6068b 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/configure/ToolsFragment.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/configure/ToolsFragment.kt @@ -1,6 +1,6 @@ /* * Tinc Mesh VPN: Android client and user interface - * Copyright (C) 2017-2023 Euxane P. TRAN-GIRARD + * Copyright (C) 2017-2024 Euxane P. TRAN-GIRARD * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,5 +46,5 @@ class ToolsFragment : BaseFragment() { } private fun openDialog(tool: ConfigurationToolDialogFragment): () -> Unit = - { if (!tool.isAdded) tool.show(fragmentManager!!, tool.javaClass.simpleName) } + { if (!tool.isAdded) tool.show(parentFragmentManager, tool.javaClass.simpleName) } } -- cgit v1.2.3