kopia lustrzana https://github.com/ryukoposting/Signal-Android
Finish MediaPreviewV2Activity when jumping to a message.
rodzic
71ecba17fc
commit
31bcc2e2eb
|
@ -254,7 +254,10 @@ class MediaPreviewV2Fragment : LoggingFragment(R.layout.fragment_media_preview_v
|
||||||
if (messageId != null) {
|
if (messageId != null) {
|
||||||
binding.toolbar.setOnClickListener { v ->
|
binding.toolbar.setOnClickListener { v ->
|
||||||
viewModel.jumpToFragment(v.context, messageId).subscribeBy(
|
viewModel.jumpToFragment(v.context, messageId).subscribeBy(
|
||||||
onSuccess = { startActivity(it) },
|
onSuccess = {
|
||||||
|
startActivity(it)
|
||||||
|
requireActivity().finish()
|
||||||
|
},
|
||||||
onError = {
|
onError = {
|
||||||
Log.e(TAG, "Could not find message position for message ID: $messageId", it)
|
Log.e(TAG, "Could not find message position for message ID: $messageId", it)
|
||||||
Toast.makeText(v.context, R.string.MediaPreviewActivity_error_finding_message, Toast.LENGTH_LONG).show()
|
Toast.makeText(v.context, R.string.MediaPreviewActivity_error_finding_message, Toast.LENGTH_LONG).show()
|
||||||
|
|
Ładowanie…
Reference in New Issue