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 ++-- changelog.md | 1 + 2 files changed, 3 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 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) } } diff --git a/changelog.md b/changelog.md index 340a358..a654e51 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,7 @@ Releases are tracked and referred to using git tags. (in USB storage mode). The embedded FTP server has been removed - display errors on the home screen instead of through the system notifications (as recommended-required for Android 13, API 33) +- fix app crash on fast tap in configuration screen ## v0.37 -- 2023-01-30 - add russian translation (contributed by exclued) -- cgit v1.2.3