From c7010707405d3d59186522396b482bafd5bcb888 Mon Sep 17 00:00:00 2001 From: Eduarda Barbosa Date: Thu, 6 Feb 2025 18:59:59 -0300 Subject: [PATCH] add horizontal inset --- .../view/folders/SuggestedFoldersPaywallBottomSheet.kt | 6 ++++-- .../pocketcasts/podcasts/view/podcasts/PodcastsFragment.kt | 2 +- .../services/localization/src/main/res/values/strings.xml | 5 ----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/folders/SuggestedFoldersPaywallBottomSheet.kt b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/folders/SuggestedFoldersPaywallBottomSheet.kt index 805e94209d3..c7125530d6d 100644 --- a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/folders/SuggestedFoldersPaywallBottomSheet.kt +++ b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/folders/SuggestedFoldersPaywallBottomSheet.kt @@ -6,12 +6,13 @@ import android.view.View import android.view.ViewGroup import android.widget.FrameLayout import androidx.core.view.doOnLayout +import androidx.fragment.compose.content import au.com.shiftyjelly.pocketcasts.compose.AppTheme -import au.com.shiftyjelly.pocketcasts.compose.extensions.contentWithoutConsumedInsets import au.com.shiftyjelly.pocketcasts.settings.onboarding.OnboardingFlow import au.com.shiftyjelly.pocketcasts.settings.onboarding.OnboardingLauncher import au.com.shiftyjelly.pocketcasts.settings.onboarding.OnboardingUpgradeSource import au.com.shiftyjelly.pocketcasts.ui.theme.Theme +import au.com.shiftyjelly.pocketcasts.views.extensions.setSystemWindowInsetToPadding import com.google.android.material.bottomsheet.BottomSheetBehavior import com.google.android.material.bottomsheet.BottomSheetDialog import com.google.android.material.bottomsheet.BottomSheetDialogFragment @@ -28,7 +29,7 @@ class SuggestedFoldersPaywallBottomSheet : BottomSheetDialogFragment() { inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?, - ) = contentWithoutConsumedInsets { + ) = content { AppTheme(theme.activeTheme) { SuggestedFoldersPaywall( onUseTheseFolders = { @@ -58,5 +59,6 @@ class SuggestedFoldersPaywallBottomSheet : BottomSheetDialogFragment() { } } } + view.setSystemWindowInsetToPadding(right = true, left = true) } } diff --git a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcasts/PodcastsFragment.kt b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcasts/PodcastsFragment.kt index 34e68d20fe2..c31c74064b0 100644 --- a/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcasts/PodcastsFragment.kt +++ b/modules/features/podcasts/src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/view/podcasts/PodcastsFragment.kt @@ -30,8 +30,8 @@ import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.FolderCreateFragment import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.FolderCreateSharedViewModel import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.FolderEditFragment import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.FolderEditPodcastsFragment -import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.SuggestedFoldersPaywallBottomSheet import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.SuggestedFolders +import au.com.shiftyjelly.pocketcasts.podcasts.view.folders.SuggestedFoldersPaywallBottomSheet import au.com.shiftyjelly.pocketcasts.podcasts.view.podcast.PodcastFragment import au.com.shiftyjelly.pocketcasts.podcasts.viewmodel.PodcastsViewModel import au.com.shiftyjelly.pocketcasts.preferences.Settings diff --git a/modules/services/localization/src/main/res/values/strings.xml b/modules/services/localization/src/main/res/values/strings.xml index b7b4a6bdef6..869d4e6a543 100644 --- a/modules/services/localization/src/main/res/values/strings.xml +++ b/modules/services/localization/src/main/res/values/strings.xml @@ -2327,10 +2327,5 @@ Folder %s Your podcasts, automatically organized We\'ve pre-made folders for your podcasts. Unlock this and features like bookmarks, transcripts, and more with Pocket Casts Plus. -<<<<<<< HEAD -======= - Use these folders - Folder %s ->>>>>>> 7bc169f6e (improve accessibility)