Skip to content

Commit 360ae2e

Browse files
committed
fix(search): don't pass a null account ID to the search intent
1 parent 2025f1e commit 360ae2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎legacy/ui/legacy/src/main/java/com/fsck/k9/activity/MessageHomeActivity.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ open class MessageHomeActivity :
12261226
override fun startSearch(query: String, accountId: AccountId?, folderId: Long?): Boolean {
12271227
// If this search was started from a MessageList of a single folder, pass along that folder info
12281228
// so that we can enable remote search.
1229-
val appData = if (account != null && folderId != null) {
1229+
val appData = if (accountId != null && folderId != null) {
12301230
Bundle().apply {
12311231
putString(EXTRA_SEARCH_ACCOUNT, accountId.toString())
12321232
putLong(EXTRA_SEARCH_FOLDER, folderId)

0 commit comments

Comments
 (0)