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:
Sebastian Kaspari 2015-10-02 13:37:04 +02:00
parent 9eccd43a85
commit 634cfa8e3e

View File

@ -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);