mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-20 00:35:47 +01:00
Resume playback for stories after viewing self.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
package org.thoughtcrime.securesms.recipients.ui.about
|
||||
|
||||
import android.content.DialogInterface
|
||||
import android.content.res.Configuration
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.clickable
|
||||
@@ -164,6 +165,15 @@ class AboutSheet : ComposeBottomSheetDialogFragment() {
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDismiss(dialog: DialogInterface) {
|
||||
super.onDismiss(dialog)
|
||||
(parentFragment as? Callback)?.onAboutSheetDismissed()
|
||||
}
|
||||
|
||||
interface Callback {
|
||||
fun onAboutSheetDismissed()
|
||||
}
|
||||
}
|
||||
|
||||
private data class AboutModel(
|
||||
|
||||
+7
-1
@@ -77,6 +77,7 @@ import org.thoughtcrime.securesms.mediapreview.MediaPreviewPageFragment
|
||||
import org.thoughtcrime.securesms.mediapreview.VideoControlsDelegate
|
||||
import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.recipients.RecipientId
|
||||
import org.thoughtcrime.securesms.recipients.ui.about.AboutSheet
|
||||
import org.thoughtcrime.securesms.recipients.ui.bottomsheet.RecipientBottomSheetDialogFragment
|
||||
import org.thoughtcrime.securesms.safety.SafetyNumberBottomSheet
|
||||
import org.thoughtcrime.securesms.stories.StorySlateView
|
||||
@@ -118,7 +119,8 @@ class StoryViewerPageFragment :
|
||||
StorySlateView.Callback,
|
||||
StoryInfoBottomSheetDialogFragment.OnInfoSheetDismissedListener,
|
||||
SafetyNumberBottomSheet.Callbacks,
|
||||
RecipientBottomSheetDialogFragment.Callback {
|
||||
RecipientBottomSheetDialogFragment.Callback,
|
||||
AboutSheet.Callback {
|
||||
|
||||
private val storyVolumeViewModel: StoryVolumeViewModel by viewModels(ownerProducer = { requireActivity() })
|
||||
|
||||
@@ -1508,6 +1510,10 @@ class StoryViewerPageFragment :
|
||||
viewModel.setIsDisplayingRecipientBottomSheet(false)
|
||||
}
|
||||
|
||||
override fun onAboutSheetDismissed() {
|
||||
viewModel.setIsDisplayingRecipientBottomSheet(false)
|
||||
}
|
||||
|
||||
override fun onMessageClicked() = Unit
|
||||
|
||||
interface Callback {
|
||||
|
||||
Reference in New Issue
Block a user