mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-20 12:14:37 +02:00
Workaround to prevent crash on first run (#898)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
8bc662c9c0
commit
57f125a4da
|
|
@ -291,6 +291,7 @@ class SearchableRepositoryViewModel(application: Application) : AndroidViewModel
|
|||
recyclerViewState: Parcelable? = null,
|
||||
pushPreviousLocation: Boolean = true
|
||||
) {
|
||||
if (!newDirectory.exists()) return
|
||||
require(newDirectory.isDirectory) { "Can only navigate to a directory" }
|
||||
if (pushPreviousLocation) {
|
||||
navigationStack.push(NavigationStackEntry(_currentDir.value!!, recyclerViewState))
|
||||
|
|
|
|||
Loading…
Reference in a new issue