prefill the bottom bar with some default apps

This commit is contained in:
tibbi
2022-09-18 19:14:06 +02:00
parent 69ee50167b
commit e9c248b520
9 changed files with 150 additions and 25 deletions

View File

@ -1,3 +1,17 @@
package com.simplemobiletools.launcher.models
data class HomeScreenGridItem(var left: Int, val top: Int, val right: Int, val bottom: Int, val packageName: String)
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
// grid coords are from 0-5 by default. Icons occupy 1 slot only, widgets can be bigger
@Entity(tableName = "home_screen_grid_items", indices = [(Index(value = ["id"], unique = true))])
data class HomeScreenGridItem(
@PrimaryKey(autoGenerate = true) var id: Long?,
@ColumnInfo(name = "left") var left: Int,
@ColumnInfo(name = "top") val top: Int,
@ColumnInfo(name = "right") val right: Int,
@ColumnInfo(name = "bottom") val bottom: Int,
@ColumnInfo(name = "package_name") val packageName: String
)