Refine code style

This commit is contained in:
Mygod
2019-06-20 23:54:15 +08:00
parent c3f8bf7b16
commit befea46b3e
2 changed files with 3 additions and 5 deletions

View File

@@ -11,8 +11,8 @@ if (!getGradle().getStartParameter().getTaskRequests().toString().contains("Fdro
android {
compileSdkVersion 29
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "be.mygod.vpnhotspot"

View File

@@ -21,8 +21,6 @@ abstract class IpNeighbourMonitoringService : Service(), IpNeighbourMonitor.Call
.distinctBy { it.lladdr }
.size
}
ServiceNotification.startForeground(this,
activeIfaces.associate { Pair(it, sizeLookup[it] ?: 0) },
inactiveIfaces)
ServiceNotification.startForeground(this, activeIfaces.associateWith { sizeLookup[it] ?: 0 }, inactiveIfaces)
}
}