From 45d2c252b19c08bbd20acaaa2f52ae8518150169 Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Fri, 14 Sep 2018 12:35:36 +0100 Subject: Move some members to the "Q blacklist". Based on some analysis, these fields/methods are likely false positives. Set maxTargetSdk=P so that any apps using them are required to migrate off them in future. See the bug for more details. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Merged-In: I719b5c94e5b1f4fa562dd5d655953422958ad37e Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e (cherry picked from commit 8c854f86a477fbbee38092f449333e1425e5cd7e) --- core/java/android/widget/SearchView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/java/android/widget/SearchView.java') diff --git a/core/java/android/widget/SearchView.java b/core/java/android/widget/SearchView.java index 5b5950dce1f4..10e1dfb30a5a 100644 --- a/core/java/android/widget/SearchView.java +++ b/core/java/android/widget/SearchView.java @@ -36,6 +36,7 @@ import android.database.Cursor; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.net.Uri; +import android.os.Build; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; @@ -1292,7 +1293,7 @@ public class SearchView extends LinearLayout implements CollapsibleActionView { mSearchSrcTextView.dismissDropDown(); } - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) private void onCloseClicked() { CharSequence text = mSearchSrcTextView.getText(); if (TextUtils.isEmpty(text)) { @@ -1590,7 +1591,7 @@ public class SearchView extends LinearLayout implements CollapsibleActionView { /** * Sets the text in the query box, without updating the suggestions. */ - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) private void setQuery(CharSequence query) { mSearchSrcTextView.setText(query, true); // Move the cursor to the end -- cgit v1.2.3