File tree 2 files changed +4
-3
lines changed
app/src/main/kotlin/com/zulip/flutter
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import androidx.core.app.NotificationCompat
19
19
import androidx.core.app.NotificationManagerCompat
20
20
import androidx.core.graphics.drawable.IconCompat
21
21
import io.flutter.embedding.engine.plugins.FlutterPlugin
22
+ import androidx.core.net.toUri
22
23
23
24
private const val TAG = " ZulipPlugin"
24
25
@@ -64,7 +65,7 @@ private class AndroidNotificationHost(val context: Context)
64
65
channel.name?.let { setName(it) }
65
66
channel.lightsEnabled?.let { setLightsEnabled(it) }
66
67
channel.soundUrl?.let {
67
- setSound(Uri .parse(it ),
68
+ setSound(it.toUri( ),
68
69
AudioAttributes .Builder ().setUsage(AudioAttributes .USAGE_NOTIFICATION ).build())
69
70
}
70
71
channel.vibrationPattern?.let { setVibrationPattern(it) }
@@ -199,7 +200,7 @@ private class AndroidNotificationHost(val context: Context)
199
200
it.requestCode.toInt(),
200
201
it.intent.let { intent -> Intent (
201
202
intent.action,
202
- Uri .parse( intent.dataUrl),
203
+ intent.dataUrl.toUri( ),
203
204
context,
204
205
MainActivity ::class .java
205
206
).apply {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ android.enableJetifier=true
6
6
# Defining them here makes them available both in
7
7
# settings.gradle and in the build.gradle files.
8
8
9
- agpVersion =8.5.2
9
+ agpVersion =8.9.1
10
10
11
11
# Generally update this to the version found in recent releases
12
12
# of Android Studio, as listed in this table:
You can’t perform that action at this time.
0 commit comments