Skip to content

Commit

Permalink
- cleaned up source chooser
Browse files Browse the repository at this point in the history
- made the notification navigate to the recent fragment so its easier to leave app
  • Loading branch information
jakepurple13 committed Apr 9, 2021
1 parent 1c2c444 commit 588ff6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
.setTitle("Choose a source")
.setSingleChoiceItems(
list.map { it.serviceName }.toTypedArray(),
list.indexOfFirst {
println(it)
println(service)
it.serviceName == service
}.also { println(it) }
list.indexOfFirst { it.serviceName == service }
) { d, i ->
sourcePublish.onNext(list[i])
requireContext().currentService = list[i].serviceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ class UpdateNotification(private val context: Context) {
}
pendingIntent { context ->
NavDeepLinkBuilder(context)
.setGraph(R.navigation.all_nav)
.setDestination(R.id.detailsFragment3)
.setGraph(R.navigation.recent_nav)
.setDestination(R.id.detailsFragment2)
.setArguments(Bundle().apply { putSerializable("itemInfo", pair.second.toItemModel(pair.first!!.source)) })
.createPendingIntent()
}
Expand Down

0 comments on commit 588ff6d

Please sign in to comment.