mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
make some views not nullable
This commit is contained in:
@ -34,6 +34,7 @@ import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
|||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||||
|
import com.simplemobiletools.commons.models.FAQItem
|
||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.commons.models.Release
|
import com.simplemobiletools.commons.models.Release
|
||||||
import kotlinx.android.synthetic.main.activity_main.*
|
import kotlinx.android.synthetic.main.activity_main.*
|
||||||
|
@ -37,7 +37,7 @@ class DayFragmentsHolder : MyFragmentHolder(), NavigationListener {
|
|||||||
val view = inflater.inflate(R.layout.fragment_days_holder, container, false)
|
val view = inflater.inflate(R.layout.fragment_days_holder, container, false)
|
||||||
view.background = ColorDrawable(context!!.config.backgroundColor)
|
view.background = ColorDrawable(context!!.config.backgroundColor)
|
||||||
viewPager = view.fragment_days_viewpager
|
viewPager = view.fragment_days_viewpager
|
||||||
viewPager?.id = (System.currentTimeMillis() % 100000).toInt()
|
viewPager!!.id = (System.currentTimeMillis() % 100000).toInt()
|
||||||
setupFragment()
|
setupFragment()
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class MonthFragmentsHolder : MyFragmentHolder(), NavigationListener {
|
|||||||
val view = inflater.inflate(R.layout.fragment_months_holder, container, false)
|
val view = inflater.inflate(R.layout.fragment_months_holder, container, false)
|
||||||
view.background = ColorDrawable(context!!.config.backgroundColor)
|
view.background = ColorDrawable(context!!.config.backgroundColor)
|
||||||
viewPager = view.fragment_months_viewpager
|
viewPager = view.fragment_months_viewpager
|
||||||
viewPager?.id = (System.currentTimeMillis() % 100000).toInt()
|
viewPager!!.id = (System.currentTimeMillis() % 100000).toInt()
|
||||||
setupFragment()
|
setupFragment()
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class YearFragmentsHolder : MyFragmentHolder() {
|
|||||||
val view = inflater.inflate(R.layout.fragment_years_holder, container, false)
|
val view = inflater.inflate(R.layout.fragment_years_holder, container, false)
|
||||||
view.background = ColorDrawable(context!!.config.backgroundColor)
|
view.background = ColorDrawable(context!!.config.backgroundColor)
|
||||||
viewPager = view.fragment_years_viewpager
|
viewPager = view.fragment_years_viewpager
|
||||||
viewPager?.id = (System.currentTimeMillis() % 100000).toInt()
|
viewPager!!.id = (System.currentTimeMillis() % 100000).toInt()
|
||||||
setupFragment()
|
setupFragment()
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user