Commit f79ef2c
committed
Fix RequiresFeature lint: setPaymentRequestEnabled should only be called if the feature PAYMENT_REQUEST is present
Ensures the function works correctly even when called without prior WebViewFeature.isFeatureSupported check.
ref. https://developers.google.com/pay/api/android/guides/recipes/using-android-webview#enable-payment-request-api1 parent 103e29f commit f79ef2c
File tree
1 file changed
+4
-1
lines changed- packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
0 commit comments