Skip to content

Commit

Permalink
fix: update ghost mode toggle logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyZavar committed Jul 28, 2023
1 parent 3310ada commit e308304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int positi
TextCheckCell2 checkCell = (TextCheckCell2) holder.itemView;
if (position == ghostModeToggleRow) {
int selectedCount = getGhostModeSelectedCount();
checkCell.setTextAndCheck(LocaleController.getString(R.string.GhostModeToggle), selectedCount > 0, true, true);
checkCell.setTextAndCheck(LocaleController.getString(R.string.GhostModeToggle), AyuConfig.isGhostModeActive(), true, true);
checkCell.setCollapseArrow(String.format(Locale.US, "%d/4", selectedCount), !ghostModeMenuExpanded, () -> {
AyuConfig.toggleGhostMode();
updateGhostViews();
Expand Down

0 comments on commit e308304

Please sign in to comment.