mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
add FLAG_ACTIVITY_NEW_TASK for incoming location message
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
2154b6cf94
commit
4190cf1dfe
@ -310,6 +310,7 @@ class IncomingLocationMessageViewHolder(incomingView: View) : MessageHolders
|
|||||||
if (!locationGeoLink.isNullOrEmpty()) {
|
if (!locationGeoLink.isNullOrEmpty()) {
|
||||||
val geoLinkWithMarker = addMarkerToGeoLink(locationGeoLink!!)
|
val geoLinkWithMarker = addMarkerToGeoLink(locationGeoLink!!)
|
||||||
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(geoLinkWithMarker))
|
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(geoLinkWithMarker))
|
||||||
|
browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
context!!.startActivity(browserIntent)
|
context!!.startActivity(browserIntent)
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(context, R.string.nc_common_error_sorry, Toast.LENGTH_LONG).show()
|
Toast.makeText(context, R.string.nc_common_error_sorry, Toast.LENGTH_LONG).show()
|
||||||
|
Loading…
Reference in New Issue
Block a user