aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2023-07-30 03:19:08 +0200
committerpacien2023-07-30 03:53:20 +0200
commit08e009f62d352030860b6931f2d393d07bca1c6e (patch)
tree3b78af5217b3003d717ee649cca3feaeb5234d5c
parent49d3c5c7b3f594f3b9b37a418af64b43d6724954 (diff)
downloadtincapp-08e009f62d352030860b6931f2d393d07bca1c6e.tar.gz
screen/configuration: fix app crash on fast tap on tools
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/configure/ToolsFragment.kt4
-rw-r--r--changelog.md1
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 @@
1/* 1/*
2 * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon 2 * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon
3 * Copyright (C) 2017-2020 Pacien TRAN-GIRARD 3 * Copyright (C) 2017-2023 Pacien 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 { tool.show(fragmentManager!!, tool.javaClass.simpleName) } 49 { if (!tool.isAdded) tool.show(fragmentManager!!, tool.javaClass.simpleName) }
50} 50}
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.
8 (in USB storage mode). The embedded FTP server has been removed 8 (in USB storage mode). The embedded FTP server has been removed
9- display errors on the home screen instead of through the system notifications 9- display errors on the home screen instead of through the system notifications
10 (as recommended-required for Android 13, API 33) 10 (as recommended-required for Android 13, API 33)
11- fix app crash on fast tap in configuration screen
11 12
12## v0.37 -- 2023-01-30 13## v0.37 -- 2023-01-30
13- add russian translation (contributed by exclued) 14- add russian translation (contributed by exclued)