Skip to content

Instantly share code, notes, and snippets.

@stfalconaleks
Created October 6, 2017 08:01
Show Gist options
  • Save stfalconaleks/528eec47a8f673aa86db687eb4c96cc6 to your computer and use it in GitHub Desktop.
Save stfalconaleks/528eec47a8f673aa86db687eb4c96cc6 to your computer and use it in GitHub Desktop.
public abstract class ActivityViewModel extends BaseObservable {
protected Activity activity;
public ActivityViewModel(Activity activity) {
this.activity = activity;
}
public Activity getActivity() {
return activity;
}
//...lifecycle methods
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment