Fixes some warnings
This commit is contained in:
@@ -345,7 +345,9 @@ class CallAudioManager(
|
||||
.setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE)
|
||||
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
|
||||
.build()
|
||||
isLooping = true
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
isLooping = true
|
||||
}
|
||||
play()
|
||||
}
|
||||
} catch (_: Exception) {
|
||||
|
||||
@@ -247,10 +247,6 @@ sealed class Proposal : TlsSerializable {
|
||||
ProposalType.EXTERNAL_INIT -> {
|
||||
ExternalInit(reader.readOpaqueVarInt())
|
||||
}
|
||||
|
||||
else -> {
|
||||
throw IllegalArgumentException("Unsupported proposal type: $type")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ sealed class Credential : TlsSerializable {
|
||||
writer.putVectorVarInt(
|
||||
certChain.map { cert ->
|
||||
object : TlsSerializable {
|
||||
override fun encodeTls(w: TlsWriter) {
|
||||
w.putOpaqueVarInt(cert)
|
||||
override fun encodeTls(writer: TlsWriter) {
|
||||
writer.putOpaqueVarInt(cert)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ class MarmotSubscriptionManagerTest {
|
||||
|
||||
assertEquals(listOf(GiftWrapEvent.KIND), filter.kinds)
|
||||
assertNotNull(filter.tags)
|
||||
assertEquals(listOf(userPubKey), filter.tags!!["p"])
|
||||
assertEquals(listOf(userPubKey), filter.tags["p"])
|
||||
assertNull(filter.since)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user