mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Properly initialize appComponent
This commit is contained in:
@@ -81,10 +81,11 @@ public abstract class BaseDialog extends AppCompatDialogFragment
|
|||||||
HabitsApplication app =
|
HabitsApplication app =
|
||||||
(HabitsApplication) getContext().getApplicationContext();
|
(HabitsApplication) getContext().getApplicationContext();
|
||||||
|
|
||||||
prefs = app.getComponent().getPreferences();
|
appComponent = app.getComponent();
|
||||||
habitList = app.getComponent().getHabitList();
|
prefs = appComponent.getPreferences();
|
||||||
commandRunner = app.getComponent().getCommandRunner();
|
habitList = appComponent.getHabitList();
|
||||||
modelFactory = app.getComponent().getModelFactory();
|
commandRunner = appComponent.getCommandRunner();
|
||||||
|
modelFactory = appComponent.getModelFactory();
|
||||||
|
|
||||||
ButterKnife.bind(this, view);
|
ButterKnife.bind(this, view);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user