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