mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-06 15:56:48 +01:00
ENF: Use new base features
This commit is contained in:
parent
fd8ce71a83
commit
9304375da7
@ -277,9 +277,9 @@ class ExposureNotificationServiceImpl(private val context: Context, private val
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExposureSummary.ExposureSummaryBuilder()
|
ExposureSummary.ExposureSummaryBuilder()
|
||||||
.setDaysSinceLastExposure(exposures.map { it.daysSinceExposure }.min()?.toInt() ?: 0)
|
.setDaysSinceLastExposure(exposures.map { it.daysSinceExposure }.minOrNull()?.toInt() ?: 0)
|
||||||
.setMatchedKeyCount(exposures.map { it.key }.distinct().size)
|
.setMatchedKeyCount(exposures.map { it.key }.distinct().size)
|
||||||
.setMaximumRiskScore(exposures.map { it.getRiskScore(configuration) }.max()?.toInt() ?: 0)
|
.setMaximumRiskScore(exposures.map { it.getRiskScore(configuration) }.maxOrNull()?.toInt() ?: 0)
|
||||||
.setAttenuationDurations(intArrayOf(
|
.setAttenuationDurations(intArrayOf(
|
||||||
exposures.map { it.getAttenuationDurations(configuration)[0] }.sum(),
|
exposures.map { it.getAttenuationDurations(configuration)[0] }.sum(),
|
||||||
exposures.map { it.getAttenuationDurations(configuration)[1] }.sum(),
|
exposures.map { it.getAttenuationDurations(configuration)[1] }.sum(),
|
||||||
@ -784,7 +784,7 @@ class ExposureNotificationServiceImpl(private val context: Context, private val
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean = warnOnTransactionIssues(TAG, code, reply, flags) { super.onTransact(code, data, reply, flags) }
|
override fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean = warnOnTransactionIssues(code, reply, flags) { super.onTransact(code, data, reply, flags) }
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val tempGrantedPermissions: MutableSet<Pair<String, String>> = hashSetOf()
|
private val tempGrantedPermissions: MutableSet<Pair<String, String>> = hashSetOf()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user