Skip to content

Commit

Permalink
Fix notification settings current value
Browse files Browse the repository at this point in the history
  • Loading branch information
patzly committed Dec 30, 2024
1 parent 1264d10 commit b879c4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
}
});

binding.switchStockEnableNotifications.post(() -> {
binding.switchStockEnableNotifications.jumpDrawablesToCurrentState();
binding.switchChoresEnableNotifications.jumpDrawablesToCurrentState();
});
binding.switchStockEnableNotifications.setChecked(viewModel.getStockNotificationsEnabled());
binding.switchStockEnableNotifications.post(
() -> binding.switchStockEnableNotifications.jumpDrawablesToCurrentState()
);
permStockLauncher = registerForActivityResult(new RequestPermission(), isGranted -> {
if (isGranted) {
if (binding != null) {
Expand Down Expand Up @@ -147,6 +147,10 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
}
});

binding.switchChoresEnableNotifications.setChecked(viewModel.getChoresNotificationsEnabled());
binding.switchChoresEnableNotifications.post(
() -> binding.switchChoresEnableNotifications.jumpDrawablesToCurrentState()
);
permChoresLauncher = registerForActivityResult(new RequestPermission(), isGranted -> {
if (isGranted) {
if (binding != null) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/raw/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 3.7.1

- Improved: Hide bottom bar if it is empty
- Fixed: notification settings not displaying current value in certain cases
- Fixed: Bottom bar not hiding on some pages when scrolled down

## 3.7.0
Expand Down

0 comments on commit b879c4b

Please sign in to comment.