refetch widgets with apps too
This commit is contained in:
parent
ed9fc728ee
commit
9c1458d89b
2 changed files with 2 additions and 1 deletions
|
@ -158,6 +158,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||
private fun refetchLaunchers() {
|
||||
val launchers = getAllAppLaunchers()
|
||||
(all_apps_fragment as AllAppsFragment).gotLaunchers(launchers)
|
||||
(widgets_fragment as WidgetsFragment).getAppWidgets()
|
||||
|
||||
mCachedLaunchers.map { it.packageName }.forEach { packageName ->
|
||||
if (!launchers.map { it.packageName }.contains(packageName)) {
|
||||
|
|
|
@ -36,7 +36,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
|
|||
setupAdapter(appWidgets)
|
||||
}
|
||||
|
||||
private fun getAppWidgets() {
|
||||
fun getAppWidgets() {
|
||||
ensureBackgroundThread {
|
||||
// get the casual widgets
|
||||
var appWidgets = ArrayList<AppWidget>()
|
||||
|
|
Loading…
Reference in a new issue