From 08e009f62d352030860b6931f2d393d07bca1c6e Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 30 Jul 2023 03:19:08 +0200 Subject: screen/configuration: fix app crash on fast tap on tools --- .../java/org/pacien/tincapp/activities/configure/ToolsFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/org/pacien') 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 d15eb95..5850a1c 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 App, an Android binding and user interface for the tinc mesh VPN daemon - * Copyright (C) 2017-2020 Pacien TRAN-GIRARD + * Copyright (C) 2017-2023 Pacien 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 = - { tool.show(fragmentManager!!, tool.javaClass.simpleName) } + { if (!tool.isAdded) tool.show(fragmentManager!!, tool.javaClass.simpleName) } } -- cgit v1.2.3