Skip to content

Commit

Permalink
Properly initialize appComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed Aug 4, 2016
1 parent 8132188 commit 11378e0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ public View onCreateView(LayoutInflater inflater,
HabitsApplication app =
(HabitsApplication) getContext().getApplicationContext();

prefs = app.getComponent().getPreferences();
habitList = app.getComponent().getHabitList();
commandRunner = app.getComponent().getCommandRunner();
modelFactory = app.getComponent().getModelFactory();
appComponent = app.getComponent();
prefs = appComponent.getPreferences();
habitList = appComponent.getHabitList();
commandRunner = appComponent.getCommandRunner();
modelFactory = appComponent.getModelFactory();

ButterKnife.bind(this, view);

Expand Down

0 comments on commit 11378e0

Please sign in to comment.