Skip to content

Commit 41bbfbe

Browse files
committed
fix: set the correct value for currentDefaultApplication variable using productName and defaultApplication
1 parent 36cff7e commit 41bbfbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/MainFileListFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,8 @@ class MainFileListFragment : Fragment(),
11671167
}
11681168
setOnClickListener {
11691169
showFilenameTextDialog(appRegistry.ext)
1170-
currentDefaultApplication = appRegistry.defaultApplication
1170+
currentDefaultApplication = appRegistry.appProviders.find { it.productName == appRegistry.defaultApplication}?.name
1171+
?: appRegistry.defaultApplication
11711172
dialog.hide()
11721173
}
11731174
}

0 commit comments

Comments
 (0)