Make search action order customizable
This commit is contained in:
@@ -22,7 +22,7 @@ internal val Context.dataStore: LauncherDataStore by dataStore(
|
||||
}
|
||||
)
|
||||
|
||||
internal const val SchemaVersion = 12
|
||||
internal const val SchemaVersion = 11
|
||||
|
||||
internal fun getMigrations(context: Context): List<DataMigration<Settings>> {
|
||||
return listOf(
|
||||
@@ -37,6 +37,5 @@ internal fun getMigrations(context: Context): List<DataMigration<Settings>> {
|
||||
Migration_8_9(),
|
||||
Migration_9_10(),
|
||||
Migration_10_11(),
|
||||
Migration_11_12(),
|
||||
)
|
||||
}
|
||||
@@ -162,17 +162,6 @@ fun createFactorySettings(context: Context): Settings {
|
||||
Settings.WidgetSettings.newBuilder()
|
||||
.setEditButton(true)
|
||||
)
|
||||
.setSearchActions(
|
||||
Settings.SearchActionSettings.newBuilder()
|
||||
.setCall(true)
|
||||
.setContact(true)
|
||||
.setEmail(true)
|
||||
.setMessage(true)
|
||||
.setOpenUrl(true)
|
||||
.setScheduleEvent(true)
|
||||
.setSetAlarm(true)
|
||||
.setStartTimer(true)
|
||||
)
|
||||
.build()
|
||||
}
|
||||
|
||||
|
||||
@@ -288,16 +288,4 @@ message Settings {
|
||||
bool edit_button = 1;
|
||||
}
|
||||
WidgetSettings widgets = 26;
|
||||
|
||||
message SearchActionSettings {
|
||||
bool call = 1;
|
||||
bool message = 2;
|
||||
bool email = 3;
|
||||
bool contact = 4;
|
||||
bool open_url = 5;
|
||||
bool schedule_event = 6;
|
||||
bool set_alarm = 7;
|
||||
bool start_timer = 8;
|
||||
}
|
||||
SearchActionSettings search_actions = 27;
|
||||
}
|
||||
Reference in New Issue
Block a user