mirror of
https://github.com/bitwarden/android.git
synced 2026-06-11 00:56:24 -05:00
PM-38779: Bug: Update cursor logic to avoid exception (#7044)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user