Skip to content

Commit

Permalink
Removed animations from keywords database
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza417 committed Dec 22, 2024
1 parent 57c3703 commit 3ef26f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class AdapterMusic(val list: ArrayList<AudioModel>, val headerMode: Boolean) : R
}
} else if (holder is Header) {
holder.total.text = buildString {
list.size.toString()
append(list.size)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class SearchKeywordDatabase : ScopedBottomSheetFragment() {
private lateinit var search: DynamicCornerEditText
private lateinit var searchKeywordDatabaseViewModel: SearchKeywordDatabaseViewModel
private lateinit var searchKeywordDatabaseCallback: SearchKeywordDatabaseCallback
private var adapter: AdapterSearchKeywordDatabase? = null

private var keyword: String = ""

Expand All @@ -48,18 +49,22 @@ class SearchKeywordDatabase : ScopedBottomSheetFragment() {
when (requireArguments().getInt(BundleConstants.mode)) {
PERMISSIONS -> {
searchKeywordDatabaseViewModel.getPermissions().observe(viewLifecycleOwner) { strings ->
recyclerView.adapter = AdapterSearchKeywordDatabase(strings, keyword) {
adapter = AdapterSearchKeywordDatabase(strings, keyword) {
searchKeywordDatabaseCallback.onSearchKeywordDatabaseClicked(it)
dismiss()
}

recyclerView.setExclusiveAdapter(adapter)
}
}
TRACKERS -> {
searchKeywordDatabaseViewModel.getTrackers().observe(viewLifecycleOwner) { strings ->
recyclerView.adapter = AdapterSearchKeywordDatabase(strings, keyword) {
adapter = AdapterSearchKeywordDatabase(strings, keyword) {
searchKeywordDatabaseCallback.onSearchKeywordDatabaseClicked(it)
dismiss()
}

recyclerView.setExclusiveAdapter(adapter)
}
}
}
Expand Down

0 comments on commit 3ef26f7

Please sign in to comment.