Skip to content

Commit 01141b6

Browse files
committed
fix registration issue
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 5250e03 commit 01141b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/com/owncloud/android/ui/model/ExtendedSettingsActivityDialog.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ enum class ExtendedSettingsActivityDialog(val tag: String, val key: String, val
2222

2323
fun showDialog(activity: ExtendedSettingsActivity, dismissable: Boolean = true) {
2424
activity.run {
25-
if (supportFragmentManager.findFragmentByTag(tag) != null) {
26-
return
27-
}
28-
2925
supportFragmentManager.setFragmentResultListener(
3026
key,
3127
this
@@ -40,6 +36,10 @@ enum class ExtendedSettingsActivityDialog(val tag: String, val key: String, val
4036
finish()
4137
}
4238

39+
if (supportFragmentManager.findFragmentByTag(tag) != null) {
40+
return
41+
}
42+
4343
when (this@ExtendedSettingsActivityDialog) {
4444
StorageLocation -> ChooseStorageLocationDialogFragment()
4545
ThemeSelection -> ThemeSelectionDialog()

0 commit comments

Comments
 (0)