package Ġcom . sing ularity coder . recurring tasks 1 Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ Ċ class ĠMy ViewModel ( application : ĠApplication ) Ġ: ĠAndroid ViewModel ( application ) Ġ{ ĊĠĠĠ Ġval Ġtimer Flag : ĠMutable LiveData < Boolean > Ġ= ĠMutable LiveData () ĊĊĠĠĠ Ġfun Ġset Timer Flag ( flag : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġtimer Flag . post Value ( flag ) ĊĠĠĠ Ġ} Ċ Ċ }