public NowPlayingScreenView(Context context, AttributeSet attrs) { super(context, attrs); lightTheme = ThemeUtils.isLightTheme(getContext()); if (!isInEditMode()) { NowPlayingScreenComponent component = DaggerService.getDaggerComponent(getContext()); component.inject(this); } }