diff options
author | euxane | 2024-09-18 23:41:13 +0200 |
---|---|---|
committer | euxane | 2024-09-18 23:41:13 +0200 |
commit | 4b2aa927f8ea1a027bdfa7bc464a6b6bd7acb419 (patch) | |
tree | 874fabc43602892862f09bbd8ea4e0c401866da0 /app/src/main | |
parent | 339709367c87714682138fa1f920fcc57775fbba (diff) | |
download | tincapp-4b2aa927f8ea1a027bdfa7bc464a6b6bd7acb419.tar.gz |
fragments/tools: replace deprecated parent fragment manager call
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/configure/ToolsFragment.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
1 | /* | 1 | /* |
2 | * Tinc Mesh VPN: Android client and user interface | 2 | * Tinc Mesh VPN: Android client and user interface |
3 | * Copyright (C) 2017-2023 Euxane P. TRAN-GIRARD | 3 | * Copyright (C) 2017-2024 Euxane P. TRAN-GIRARD |
4 | * | 4 | * |
5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by |
@@ -46,5 +46,5 @@ class ToolsFragment : BaseFragment() { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | private fun openDialog(tool: ConfigurationToolDialogFragment): () -> Unit = | 48 | private fun openDialog(tool: ConfigurationToolDialogFragment): () -> Unit = |
49 | { if (!tool.isAdded) tool.show(fragmentManager!!, tool.javaClass.simpleName) } | 49 | { if (!tool.isAdded) tool.show(parentFragmentManager, tool.javaClass.simpleName) } |
50 | } | 50 | } |