make some views not nullable

This commit is contained in:
tibbi 2018-02-19 17:10:00 +01:00
parent fdb27fbf78
commit 2648014c95
4 changed files with 4 additions and 3 deletions

View file

@ -34,6 +34,7 @@ import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
import com.simplemobiletools.commons.models.FAQItem
import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.commons.models.Release
import kotlinx.android.synthetic.main.activity_main.*

View file

@ -37,7 +37,7 @@ class DayFragmentsHolder : MyFragmentHolder(), NavigationListener {
val view = inflater.inflate(R.layout.fragment_days_holder, container, false)
view.background = ColorDrawable(context!!.config.backgroundColor)
viewPager = view.fragment_days_viewpager
viewPager?.id = (System.currentTimeMillis() % 100000).toInt()
viewPager!!.id = (System.currentTimeMillis() % 100000).toInt()
setupFragment()
return view
}

View file

@ -37,7 +37,7 @@ class MonthFragmentsHolder : MyFragmentHolder(), NavigationListener {
val view = inflater.inflate(R.layout.fragment_months_holder, container, false)
view.background = ColorDrawable(context!!.config.backgroundColor)
viewPager = view.fragment_months_viewpager
viewPager?.id = (System.currentTimeMillis() % 100000).toInt()
viewPager!!.id = (System.currentTimeMillis() % 100000).toInt()
setupFragment()
return view
}

View file

@ -34,7 +34,7 @@ class YearFragmentsHolder : MyFragmentHolder() {
val view = inflater.inflate(R.layout.fragment_years_holder, container, false)
view.background = ColorDrawable(context!!.config.backgroundColor)
viewPager = view.fragment_years_viewpager
viewPager?.id = (System.currentTimeMillis() % 100000).toInt()
viewPager!!.id = (System.currentTimeMillis() % 100000).toInt()
setupFragment()
return view
}