diff --git a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcast/PodcastFragment.kt b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcast/PodcastFragment.kt index 3335eee9107..0a19a5b58cb 100644 --- a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcast/PodcastFragment.kt +++ b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcast/PodcastFragment.kt @@ -10,7 +10,6 @@ import android.view.ViewGroup import android.widget.LinearLayout import android.widget.ProgressBar import android.widget.TextView -import android.widget.Toast import androidx.annotation.ColorInt import androidx.annotation.FloatRange import androidx.annotation.MenuRes @@ -610,7 +609,13 @@ class PodcastFragment : BaseFragment() { private val onNotificationsClicked: (Podcast, Boolean) -> Unit = { podcast, show -> viewModel.showNotifications(podcast.uuid, show) - Toast.makeText(context, if (show) LR.string.podcast_notifications_on else LR.string.podcast_notifications_off, Toast.LENGTH_SHORT).show() + currentSnackBar?.dismiss() + if (show) { + showSnackBar( + message = getString(LR.string.notifications_enabled_message, podcast.title), + duration = 3000, + ) + } } private val onSettingsClicked: () -> Unit = { diff --git a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/viewmodel/PodcastViewModel.kt b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/viewmodel/PodcastViewModel.kt index 304b8e3c46f..85fd74bf679 100644 --- a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/viewmodel/PodcastViewModel.kt +++ b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/viewmodel/PodcastViewModel.kt @@ -1,8 +1,6 @@ package au.com.shiftyjelly.pocketcasts.podcasts.viewmodel -import android.content.Context import android.content.res.Resources -import android.widget.Toast import androidx.annotation.StringRes import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData diff --git a/modules/services/localization/src/main/res/values/strings.xml b/modules/services/localization/src/main/res/values/strings.xml index c2d4c18850b..ab187347e4e 100644 --- a/modules/services/localization/src/main/res/values/strings.xml +++ b/modules/services/localization/src/main/res/values/strings.xml @@ -680,6 +680,8 @@ second seconds + + We’ll notify you with new episodes of %1$s