mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-04-01 12:10:10 +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() {
|
||||
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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user