Peter Cai
770083523d
All checks were successful
/ build-debug (push) Successful in 4m45s
Eventually, we would like EuiccChannelManager to become a Service instead of just any random class.
16 lines
475 B
Kotlin
16 lines
475 B
Kotlin
package im.angry.openeuicc
|
|
|
|
import im.angry.openeuicc.core.IEuiccChannelManager
|
|
import im.angry.openeuicc.core.PrivilegedEuiccChannelManager
|
|
|
|
class PrivilegedOpenEuiccApplication: OpenEuiccApplication() {
|
|
override val euiccChannelManager: IEuiccChannelManager by lazy {
|
|
PrivilegedEuiccChannelManager(this)
|
|
}
|
|
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
|
|
(euiccChannelManager as PrivilegedEuiccChannelManager).closeAllStaleChannels()
|
|
}
|
|
} |