diff --git a/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/StorageSettingsFragment.kt b/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/StorageSettingsFragment.kt index 33f2b868e2..eea261869b 100644 --- a/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/StorageSettingsFragment.kt +++ b/modules/features/settings/src/main/java/au/com/shiftyjelly/pocketcasts/settings/StorageSettingsFragment.kt @@ -42,16 +42,16 @@ class StorageSettingsFragment : BaseFragment() { @Inject lateinit var settings: Settings - private var listener: LowStorageBottomSheetListener? = null + private var lowStorageListener: LowStorageBottomSheetListener? = null override fun onAttach(context: Context) { super.onAttach(context) - listener = context as? LowStorageBottomSheetListener + lowStorageListener = context as? LowStorageBottomSheetListener } override fun onDetach() { super.onDetach() - listener = null + lowStorageListener = null } override fun onCreateView( @@ -77,7 +77,7 @@ class StorageSettingsFragment : BaseFragment() { super.onViewCreated(view, savedInstanceState) viewLifecycleOwner.lifecycleScope.launch { viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) { - listener?.showModal() + lowStorageListener?.showModal() viewModel.permissionRequest.collect { permissionRequest -> if (permissionRequest == Manifest.permission.WRITE_EXTERNAL_STORAGE) { requestPermissionLauncher.launch(permissionRequest) diff --git a/modules/services/views/src/main/java/au/com/shiftyjelly/pocketcasts/views/lowstorage/LowStorageDialog.kt b/modules/services/views/src/main/java/au/com/shiftyjelly/pocketcasts/views/lowstorage/LowStorageDialog.kt index 95ee489d50..ca97b3c71d 100644 --- a/modules/services/views/src/main/java/au/com/shiftyjelly/pocketcasts/views/lowstorage/LowStorageDialog.kt +++ b/modules/services/views/src/main/java/au/com/shiftyjelly/pocketcasts/views/lowstorage/LowStorageDialog.kt @@ -127,7 +127,6 @@ internal fun LowStorageDialog( RowButton( text = stringResource(LR.string.manage_downloads), - contentDescription = stringResource(LR.string.manage_downloads), onClick = { onManageDownloadsClick.invoke() }, includePadding = false, textColor = MaterialTheme.theme.colors.primaryInteractive02,