Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created May 5, 2019 11:23
Show Gist options
  • Save mplacona/45c1e9f71d0c05b7f32fe229f595ad97 to your computer and use it in GitHub Desktop.
Save mplacona/45c1e9f71d0c05b7f32fe229f595ad97 to your computer and use it in GitHub Desktop.
package uk.co.placona.jetpackdemo1
- class DataSource {
+ import android.arch.lifecycle.ViewModel
+
+ class DataSource: ViewModel() {
private val tag = MainActivity::class.java.simpleName
private lateinit var myRandomNumber:Number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment