mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Properly initialize appComponent
This commit is contained in:
@@ -81,10 +81,11 @@ public abstract class BaseDialog extends AppCompatDialogFragment
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user