Skip to content

Commit

Permalink
Suppress unused parameter warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
azuo committed Sep 26, 2021
1 parent 32c580b commit 77864cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class MainFragment : Fragment() {
class ChangeTabEvent(val page: Int)

@Subscribe(threadMode = ThreadMode.MAIN)
fun onUpdateUiEvent(ignore: UpdateUiMessageEvent?) {
fun onUpdateUiEvent(@Suppress("UNUSED_PARAMETER") ignore: UpdateUiMessageEvent?) {
delayJob?.cancel()
delayJob = lifecycleScope.launch(Dispatchers.IO) {
delay(300)
Expand All @@ -234,7 +234,7 @@ class MainFragment : Fragment() {
}

@Subscribe(threadMode = ThreadMode.MAIN)
fun onChangeTabEvent(ignore: ChangeTabEvent) {
fun onChangeTabEvent(@Suppress("UNUSED_PARAMETER") ignore: ChangeTabEvent) {
val navHost = childFragmentManager.findFragmentById(R.id.settings_fragment) as? NavHostFragment?
navHost?.navController?.navigateUp()
}
Expand Down

0 comments on commit 77864cb

Please sign in to comment.