diff --git a/CHANGELOG.md b/CHANGELOG.md index 8eb1e7a99b4..b6d201b8b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ * Added the ability to see ratings for podcasts ([#951](https://github.com/Automattic/pocket-casts-android/pull/951)). +* Updates + * Link users to support forum from within the app + ([#950](https://github.com/Automattic/pocket-casts-android/pull/950)). + 7.38 ----- * Updates: diff --git a/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/HelpFragment.kt b/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/HelpFragment.kt index 4f9863700f1..a406c1be94f 100644 --- a/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/HelpFragment.kt +++ b/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/HelpFragment.kt @@ -14,13 +14,18 @@ import android.webkit.WebResourceRequest import android.webkit.WebView import android.webkit.WebViewClient import android.widget.Button +import androidx.appcompat.app.AlertDialog import androidx.appcompat.widget.Toolbar import androidx.core.view.isVisible import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.lifecycleScope +import au.com.shiftyjelly.pocketcasts.analytics.AnalyticsEvent +import au.com.shiftyjelly.pocketcasts.analytics.AnalyticsTrackerWrapper import au.com.shiftyjelly.pocketcasts.analytics.FirebaseAnalyticsTracker +import au.com.shiftyjelly.pocketcasts.models.to.SubscriptionStatus import au.com.shiftyjelly.pocketcasts.preferences.Settings +import au.com.shiftyjelly.pocketcasts.repositories.subscription.SubscriptionManager import au.com.shiftyjelly.pocketcasts.repositories.support.Support import au.com.shiftyjelly.pocketcasts.settings.status.StatusFragment import au.com.shiftyjelly.pocketcasts.settings.viewmodel.HelpViewModel @@ -42,9 +47,11 @@ import au.com.shiftyjelly.pocketcasts.views.R as VR @AndroidEntryPoint class HelpFragment : Fragment(), HasBackstack, Toolbar.OnMenuItemClickListener { + @Inject lateinit var analyticsTracker: AnalyticsTrackerWrapper @Inject lateinit var settings: Settings - @Inject lateinit var theme: Theme + @Inject lateinit var subscriptionManager: SubscriptionManager @Inject lateinit var support: Support + @Inject lateinit var theme: Theme val viewModel by viewModels() @@ -98,7 +105,9 @@ class HelpFragment : Fragment(), HasBackstack, Toolbar.OnMenuItemClickListener { loadingView = view.findViewById(VR.id.progress_circle) layoutError = view.findViewById(VR.id.layoutLoadingError) - view.findViewById