Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. private String TAG = getClass().getSimpleName();
  2.  
  3. DBModel dbModel; // this is injected room model in appComponent
  4.  
  5. public UIUpdaterWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
  6. super(context, workerParams);
  7. }
  8.  
  9. @NonNull
  10. @Override
  11. public Result doWork() {
  12. Log.d(TAG, dbModel.toString()); // here is null
  13. return Result.success();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement