From f1083a4c73fc2cf078c75bbb417b44d370494b86 Mon Sep 17 00:00:00 2001 From: Alex <alex.tran1502@gmail.com> Date: Fri, 26 Apr 2024 00:54:45 -0500 Subject: [PATCH] fix(mobile): group setting change doesn't propagate across the app (#9066) fix(mobile): group setting change doesn't propage across the app --- .../ui/asset_list_settings/asset_list_group_settings.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart b/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart index 8595973f24..315309c2f9 100644 --- a/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart +++ b/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart @@ -21,6 +21,10 @@ class GroupSettings extends HookConsumerWidget { void changeGroupValue(GroupAssetsBy? value) { if (value != null) { groupByIndex.value = value.index; + ref.watch(appSettingsServiceProvider).setSetting( + AppSettingsEnum.groupAssetsBy, + value.index, + ); ref.invalidate(appSettingsServiceProvider); } }