We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd18848 commit 51a0370Copy full SHA for 51a0370
app/src/main/java/com/appcontrolx/ui/AppListFragment.kt
@@ -210,9 +210,15 @@ class AppListFragment : Fragment() {
210
private fun showAppDetail(app: AppInfo) {
211
val bottomSheet = AppDetailBottomSheet.newInstance(app)
212
bottomSheet.onActionCompleted = {
213
- refreshAppList()
+ // Will refresh when sheet is dismissed
214
}
215
bottomSheet.show(childFragmentManager, AppDetailBottomSheet.TAG)
216
+
217
+ // Refresh list when sheet is dismissed (after any action)
218
+ childFragmentManager.executePendingTransactions()
219
+ bottomSheet.dialog?.setOnDismissListener {
220
+ refreshAppList()
221
+ }
222
223
224
private fun setupChips() {
0 commit comments