Fix black theme and Home crashing

This commit is contained in:
h4h13 2019-09-30 00:09:32 +05:30
parent 945d66169e
commit a2c5996302
3 changed files with 2 additions and 8 deletions

View file

@ -98,12 +98,6 @@ class BannerHomeFragment : AbsMainActivityFragment(), MainActivityFragmentCallba
return metrics return metrics
} }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
App.musicComponent.inject(this)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
@ -144,6 +138,7 @@ class BannerHomeFragment : AbsMainActivityFragment(), MainActivityFragmentCallba
titleWelcome.setTextColor(ThemeStore.textColorPrimary(requireContext())) titleWelcome.setTextColor(ThemeStore.textColorPrimary(requireContext()))
titleWelcome.text = String.format("%s", PreferenceUtil.getInstance(requireContext()).userName) titleWelcome.text = String.format("%s", PreferenceUtil.getInstance(requireContext()).userName)
App.musicComponent.inject(this)
homePresenter.attachView(this) homePresenter.attachView(this)
homePresenter.loadSections() homePresenter.loadSections()

View file

@ -58,7 +58,6 @@ interface HomePresenter : Presenter<HomeView> {
private var disposable: CompositeDisposable = CompositeDisposable() private var disposable: CompositeDisposable = CompositeDisposable()
private fun showData(sections: ArrayList<Home>) { private fun showData(sections: ArrayList<Home>) {
if (sections.isEmpty()) { if (sections.isEmpty()) {
view.showEmptyView() view.showEmptyView()

View file

@ -19,5 +19,5 @@
<color name="blackColorPrimary">#000000</color> <color name="blackColorPrimary">#000000</color>
<color name="blackColorBackground">#000000</color> <color name="blackColorBackground">#000000</color>
<color name="blackColorSurface">#111111</color> <color name="blackColorSurface">#000000</color>
</resources> </resources>