mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-06-05 21:59:15 +02:00
Enable customization of column count for application drawer
This commit is contained in:
@ -23,11 +23,11 @@ val Context.homeScreenGridItemsDB: HomeScreenGridItemsDao get() = AppsDatabase.g
|
||||
|
||||
val Context.hiddenIconsDB: HiddenIconsDao get() = AppsDatabase.getInstance(applicationContext).HiddenIconsDao()
|
||||
|
||||
fun Context.getColumnCount(): Int {
|
||||
fun Context.getDrawerColumnCount(): Int {
|
||||
return if (portrait) {
|
||||
resources.getInteger(R.integer.portrait_column_count)
|
||||
config.portraitDrawerColumnCount
|
||||
} else {
|
||||
resources.getInteger(R.integer.landscape_column_count)
|
||||
config.landscapeDrawerColumnCount
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user