Refine code style
This commit is contained in:
@@ -11,8 +11,8 @@ if (!getGradle().getStartParameter().getTaskRequests().toString().contains("Fdro
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility 1.8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility 1.8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "be.mygod.vpnhotspot"
|
applicationId "be.mygod.vpnhotspot"
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ abstract class IpNeighbourMonitoringService : Service(), IpNeighbourMonitor.Call
|
|||||||
.distinctBy { it.lladdr }
|
.distinctBy { it.lladdr }
|
||||||
.size
|
.size
|
||||||
}
|
}
|
||||||
ServiceNotification.startForeground(this,
|
ServiceNotification.startForeground(this, activeIfaces.associateWith { sizeLookup[it] ?: 0 }, inactiveIfaces)
|
||||||
activeIfaces.associate { Pair(it, sizeLookup[it] ?: 0) },
|
|
||||||
inactiveIfaces)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user