mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
9d2a5d4f2c
commit
3ff922ed06
@ -53,14 +53,6 @@ fun createNextcloudTalkOfflineRepository(database: TalkDatabase): NextcloudTalkO
|
|||||||
return NextcloudTalkOfflineRepositoryImpl(database)
|
return NextcloudTalkOfflineRepositoryImpl(database)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun createDatabase(context: Context): TalkDatabase {
|
|
||||||
return Room.databaseBuilder(
|
|
||||||
context,
|
|
||||||
TalkDatabase::class.java, "talk.db"
|
|
||||||
)
|
|
||||||
.build()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun createPreferences(context: Context): AppPreferences {
|
fun createPreferences(context: Context): AppPreferences {
|
||||||
return StoreBox.create<AppPreferences>(context, AppPreferences::class.java)
|
return StoreBox.create<AppPreferences>(context, AppPreferences::class.java)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user