Skip to content

Commit 33b25a5

Browse files
committed
Fix bug: should use sdkInt as the property to compare (#3865)
<!-- Note: This checklist is a reminder of our shared engineering expectations. The items in Bold are required If your PR involves UI changes: 1. Upload screenshots or screencasts that illustrate the changes before / after 2. Add them under the UI changes section (feel free to add more columns if needed) If your PR does not involve UI changes, you can remove the **UI changes** section At a minimum, make sure your changes are tested in API 23 and one of the more recent API levels available. --> Task/Issue URL: https://app.asana.com/0/0/1205952041108121/f ### Description Bug fix: - replaces `appBuildConfig.versionCode` with `appBuildConfig.sdkInt` in the OS version guard. ### Steps to test this PR QA optional
1 parent 5277b1e commit 33b25a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/systemautofill/SystemAutofillServiceSuppressor.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class RealSystemAutofillServiceSuppressor @Inject constructor(
3636

3737
@SuppressLint("NewApi")
3838
override fun suppressAutofill(webView: WebView?) {
39-
if (appBuildConfig.versionCode >= Build.VERSION_CODES.O) {
39+
if (appBuildConfig.sdkInt >= Build.VERSION_CODES.O) {
4040
webView?.context?.getSystemService(AutofillManager::class.java)?.cancel()
4141
}
4242
}

0 commit comments

Comments
 (0)