use simple context at getting a Config and DbHelper reference

This commit is contained in:
tibbi 2017-11-06 23:52:43 +01:00
parent 7aaaabeaaf
commit fe3d636996

View file

@ -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