Skip to content

Commit c0fd127

Browse files
fix: crash when opening Drive screen [WPB-23209] (#4554)
Co-authored-by: sergei.bakhtiarov <sbakhtiarov@gmail.com>
1 parent e922f2f commit c0fd127

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

build-logic/plugins/src/main/kotlin/AndroidCoordinates.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object AndroidApp {
3737
}
3838

3939
/**
40-
* The last 5 digits of the VersionCode. From 0 to 99_999.Œ
40+
* The last 5 digits of the VersionCode. From 0 to 99_999.
4141
* It's an [Int], so it can be less than 5 digits when doing [toString], of course.
4242
* Considering versionCode bumps every 5min, these are
4343
* 288 per day

features/cells/src/main/java/com/wire/android/feature/cells/ui/CellFilesNavArgs.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ data class CellFilesNavArgs(
2323
val isRecycleBin: Boolean? = false,
2424
val breadcrumbs: Array<String>? = null,
2525
val parentFolderUuid: String? = null,
26-
val isSearchByDefaultActive: Boolean = false,
26+
val isSearchByDefaultActive: Boolean? = false,
2727
) {
2828

2929
override fun hashCode(): Int {

features/cells/src/main/java/com/wire/android/feature/cells/ui/CellViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class CellViewModel @Inject constructor(
9999

100100
private val navArgs: CellFilesNavArgs = savedStateHandle.navArgs()
101101

102-
val isSearchByDefaultActive: Boolean = navArgs.isSearchByDefaultActive
102+
val isSearchByDefaultActive: Boolean = navArgs.isSearchByDefaultActive ?: false
103103

104104
// Show menu with actions for the selected file.
105105
private val _menu: MutableSharedFlow<MenuOptions> = MutableSharedFlow()

0 commit comments

Comments
 (0)