mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 22:05:19 +00:00
Workaround to prevent crash on first run (#898)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user