You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
400 B
Kotlin
18 lines
400 B
Kotlin
4 years ago
|
package com.common.commonlib
|
||
4 years ago
|
|
||
|
import android.annotation.SuppressLint
|
||
4 years ago
|
import android.app.Application
|
||
4 years ago
|
import android.content.Context
|
||
|
|
||
|
@SuppressLint("StaticFieldLeak")
|
||
4 years ago
|
object CommonApplication : Application() {
|
||
4 years ago
|
private var commonContext: Context? = null
|
||
|
|
||
|
fun intLibs(context: Context) {
|
||
|
commonContext = context
|
||
|
}
|
||
|
|
||
|
fun getContext(): Context? {
|
||
|
return commonContext
|
||
|
}
|
||
|
}
|