adding some null checks
This commit is contained in:
parent
f70d99883c
commit
5d1759868f
|
@ -41,6 +41,10 @@ class AllAppsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
|
|||
}
|
||||
|
||||
fun onConfigurationChanged() {
|
||||
if (all_apps_grid == null) {
|
||||
return
|
||||
}
|
||||
|
||||
all_apps_grid.scrollToPosition(0)
|
||||
all_apps_fastscroller.resetManualScrolling()
|
||||
setupViews()
|
||||
|
|
|
@ -45,6 +45,10 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
|
|||
}
|
||||
|
||||
fun onConfigurationChanged() {
|
||||
if (widgets_list == null) {
|
||||
return
|
||||
}
|
||||
|
||||
widgets_list.scrollToPosition(0)
|
||||
setupViews()
|
||||
|
||||
|
|
Loading…
Reference in New Issue