use simple context at getting a Config and DbHelper reference
This commit is contained in:
parent
7aaaabeaaf
commit
fe3d636996
1 changed files with 2 additions and 2 deletions
|
@ -255,9 +255,9 @@ fun Context.scheduleCalDAVSync(activate: Boolean) {
|
|||
}
|
||||
}
|
||||
|
||||
val Context.config: Config get() = Config.newInstance(this)
|
||||
val Context.config: Config get() = Config.newInstance(applicationContext)
|
||||
|
||||
val Context.dbHelper: DBHelper get() = DBHelper.newInstance(this)
|
||||
val Context.dbHelper: DBHelper get() = DBHelper.newInstance(applicationContext)
|
||||
|
||||
fun Context.addDayNumber(rawTextColor: Int, day: DayMonthly, linearLayout: LinearLayout, dayLabelHeight: Int, callback: (Int) -> Unit) {
|
||||
var textColor = rawTextColor
|
||||
|
|
Loading…
Reference in a new issue