mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-13 10:59:18 +00:00
Update: Make newly added repository visible
This commit is contained in:
@ -26,7 +26,7 @@ class RepositoriesViewModelX(val db: DatabaseX) : ViewModel() {
|
||||
}
|
||||
|
||||
private suspend fun addNewRepository() {
|
||||
withContext(Dispatchers.IO) { db.repositoryDao.insert(newRepository()) }
|
||||
withContext(Dispatchers.IO) { db.repositoryDao.insert(newRepository(address = "new.Repository")) }
|
||||
}
|
||||
|
||||
class Factory(val db: DatabaseX) : ViewModelProvider.Factory {
|
||||
|
Reference in New Issue
Block a user