code quality

This commit is contained in:
Valere 2020-04-29 18:48:26 +02:00
parent f0a9be2ec7
commit 3cf341c3bf

View file

@ -92,10 +92,6 @@ class HomeDetailFragment @Inject constructor(
state.unknownSessions.invoke()?.let { unknownDevices -> state.unknownSessions.invoke()?.let { unknownDevices ->
// Timber.v("## Detector Triggerred in fragment - ${unknownDevices.firstOrNull()}") // Timber.v("## Detector Triggerred in fragment - ${unknownDevices.firstOrNull()}")
if (unknownDevices.firstOrNull()?.currentSessionTrust == true) { if (unknownDevices.firstOrNull()?.currentSessionTrust == true) {
Timber.v("## Detector - ${unknownDevices.size} Unknown sessions")
unknownDevices.forEachIndexed { index, detectionInfo ->
Timber.v("## Detector - #$index deviceId:${detectionInfo.deviceInfo.deviceId} lastSeenTs:${detectionInfo.deviceInfo.lastSeenTs} is New: ${detectionInfo.isNew}")
}
val uid = "review_login" val uid = "review_login"
alertManager.cancelAlert(uid) alertManager.cancelAlert(uid)
val olderUnverified = unknownDevices.filter { !it.isNew } val olderUnverified = unknownDevices.filter { !it.isNew }