Null fixes

This commit is contained in:
merkost 2023-07-19 16:57:28 +10:00
parent 532400b8f5
commit 1379c288e5

View File

@ -49,12 +49,12 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
fun fontSizeChanged() {
if (this is RecentsFragment) {
(fragment_list.adapter as? RecentCallsAdapter)?.apply {
(recents_list?.adapter as? RecentCallsAdapter)?.apply {
fontSize = activity.getTextSize()
notifyDataSetChanged()
}
} else {
(fragment_list.adapter as? ContactsAdapter)?.apply {
(fragment_list?.adapter as? ContactsAdapter)?.apply {
fontSize = activity.getTextSize()
notifyDataSetChanged()
}