Compare commits

...

1 Commits

Author SHA1 Message Date
David Perez
0f13d97cb1 PM-38779: Bug: Update cursor logic to avoid exception (#7044) 2026-06-09 21:55:10 +00:00

View File

@@ -63,13 +63,16 @@ class BrowserThirdPartyAutofillManagerImpl(
var thirdPartyEnabled = false
val isThirdPartyAvailable = cursor
?.use {
it.moveToFirst()
thirdPartyEnabled = it
.getColumnIndex(THIRD_PARTY_MODE_COLUMN)
.takeUnless { columnIndex -> columnIndex == -1 }
?.let { columnIndex -> it.getInt(columnIndex) != 0 }
?: false
true
if (it.moveToFirst()) {
thirdPartyEnabled = it
.getColumnIndex(THIRD_PARTY_MODE_COLUMN)
.takeUnless { columnIndex -> columnIndex == -1 }
?.let { columnIndex -> it.getInt(columnIndex) != 0 }
?: false
true
} else {
false
}
}
?: false
return BrowserThirdPartyAutoFillData(