mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208580 - PostSearchFragment: Suppress deprecation warning for onReceivedError(). r=nalexander
The new API for onReceivedError() has just been introduced in API 23 / Android 6.0. However our minSdkVersion is 9 currently.
This commit is contained in:
parent
9eccd43a85
commit
634cfa8e3e
@ -150,6 +150,9 @@ public class PostSearchFragment extends Fragment {
|
||||
return false;
|
||||
}
|
||||
|
||||
// We are suppressing the 'deprecation' warning because the new method is only available starting with API
|
||||
// level 23 and that's much higher than our current minSdkLevel (1208580).
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
|
||||
Log.e(LOG_TAG, "Error loading search results: " + description);
|
||||
|
Loading…
Reference in New Issue
Block a user