Skip to content

Commit

Permalink
fix: AppsFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
aistra0528 committed Feb 25, 2023
1 parent 8093155 commit bac217a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/kotlin/com/aistra/hail/ui/apps/AppsFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ class AppsFragment : MainFragment(), AppsAdapter.OnItemClickListener,
else -> R.id.sort_by_name
}
).isChecked = true
menu.findItem(R.id.filter_user_apps).isChecked = HailData.filterUserApps
menu.findItem(R.id.filter_system_apps).isChecked = HailData.filterSystemApps
menu.findItem(
if (HailData.filterSystemApps) R.id.filter_system_apps else R.id.filter_user_apps
).isChecked = true
menu.findItem(R.id.filter_frozen_apps).isChecked = HailData.filterFrozenApps
menu.findItem(R.id.filter_unfrozen_apps).isChecked = HailData.filterUnfrozenApps
}
Expand Down

0 comments on commit bac217a

Please sign in to comment.