package Ġcom . iz ho . save entry . view model Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġcom . iz ho . save entry . data . getApp Database Ċ Ċ class ĠChoose Location For Widget ViewModel ( app : Application ) Ġ: ĠAndroid ViewModel ( app ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġdatabase Ġ= Ġget App Database ( app . application Context ) ĊĠĠĠ Ġval Ġall Locations Ġ= Ġdatabase . dao . getAll Locations () Ċ }