|
|
|
@ -17,8 +17,6 @@ import org.tasks.preferences.AppCompatPreferenceActivity;
|
|
|
|
|
import org.tasks.themes.Theme;
|
|
|
|
|
import org.tasks.ui.MenuColorizer;
|
|
|
|
|
|
|
|
|
|
import javax.inject.Inject;
|
|
|
|
|
|
|
|
|
|
import timber.log.Timber;
|
|
|
|
|
|
|
|
|
|
public abstract class InjectingPreferenceActivity extends AppCompatPreferenceActivity implements InjectingActivity {
|
|
|
|
@ -27,8 +25,6 @@ public abstract class InjectingPreferenceActivity extends AppCompatPreferenceAct
|
|
|
|
|
|
|
|
|
|
protected Toolbar toolbar;
|
|
|
|
|
|
|
|
|
|
@Inject Theme theme;
|
|
|
|
|
|
|
|
|
|
public InjectingPreferenceActivity() {
|
|
|
|
|
Locale.getInstance(this).applyOverrideConfiguration(this);
|
|
|
|
|
}
|
|
|
|
@ -40,6 +36,8 @@ public abstract class InjectingPreferenceActivity extends AppCompatPreferenceAct
|
|
|
|
|
.plus(new ActivityModule(this));
|
|
|
|
|
inject(activityComponent);
|
|
|
|
|
|
|
|
|
|
Theme theme = activityComponent.getTheme();
|
|
|
|
|
|
|
|
|
|
theme.applyThemeAndStatusBarColor(this, getDelegate());
|
|
|
|
|
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|