mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-04-13 01:32:03 +02:00
Null fixes
This commit is contained in:
parent
532400b8f5
commit
1379c288e5
@ -49,12 +49,12 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||||||
|
|
||||||
fun fontSizeChanged() {
|
fun fontSizeChanged() {
|
||||||
if (this is RecentsFragment) {
|
if (this is RecentsFragment) {
|
||||||
(fragment_list.adapter as? RecentCallsAdapter)?.apply {
|
(recents_list?.adapter as? RecentCallsAdapter)?.apply {
|
||||||
fontSize = activity.getTextSize()
|
fontSize = activity.getTextSize()
|
||||||
notifyDataSetChanged()
|
notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
(fragment_list.adapter as? ContactsAdapter)?.apply {
|
(fragment_list?.adapter as? ContactsAdapter)?.apply {
|
||||||
fontSize = activity.getTextSize()
|
fontSize = activity.getTextSize()
|
||||||
notifyDataSetChanged()
|
notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user