use the app package name at sorting widgets too

This commit is contained in:
tibbi 2022-10-05 14:22:08 +02:00
parent 5d3a886fd1
commit 71c4c96ad1
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
appWidgets.add(widget)
}
appWidgets = appWidgets.sortedWith(compareBy({ it.appTitle }, { it.widgetTitle })).toMutableList() as ArrayList<AppWidget>
appWidgets = appWidgets.sortedWith(compareBy({ it.appTitle }, { it.appPackageName }, { it.widgetTitle })).toMutableList() as ArrayList<AppWidget>
splitWidgetsByApps(appWidgets)
}
}