mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-02 06:24:16 +02:00
Update notification intents and deep link URI format (#5408)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -731,7 +731,7 @@ class MeshServiceNotificationsImpl(
|
||||
private val openAppIntent: PendingIntent by lazy {
|
||||
val intent =
|
||||
Intent(context, Class.forName("org.meshtastic.app.MainActivity")).apply {
|
||||
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP
|
||||
}
|
||||
PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
}
|
||||
@@ -763,7 +763,7 @@ class MeshServiceNotificationsImpl(
|
||||
}
|
||||
|
||||
private fun createOpenNodeDetailIntent(nodeNum: Int): PendingIntent {
|
||||
val deepLinkUri = "$DEEP_LINK_BASE_URI/node?destNum=$nodeNum".toUri()
|
||||
val deepLinkUri = "$DEEP_LINK_BASE_URI/nodes/$nodeNum".toUri()
|
||||
val deepLinkIntent =
|
||||
Intent(Intent.ACTION_VIEW, deepLinkUri, context, Class.forName("org.meshtastic.app.MainActivity")).apply {
|
||||
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP
|
||||
|
||||
+1
-1
@@ -211,7 +211,7 @@ class WifiOtaTransportTest {
|
||||
try {
|
||||
transport.close()
|
||||
|
||||
assertNull(withTimeout(1_000L) { connection.readLine() })
|
||||
assertNull(withTimeout(5_000L) { connection.readLine() })
|
||||
|
||||
val result = transport.startOta(1L, "hash")
|
||||
assertTrue(result.isFailure)
|
||||
|
||||
Reference in New Issue
Block a user