Skip to content

Commit 9f21c1c

Browse files
author
Jonathan Dixon
committed
Add deprecated tag and note StrictMode violation
This method is already @deprecated in docs anyway. StrictMode.noteSlowCall can help apps discover the error. Change-Id: Ie131d938b0dd32f85ec1886e2139ce3c3f511209
1 parent 39edeee commit 9f21c1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/java/android/webkit/WebView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,8 +1281,10 @@ public void findNext(boolean forward) {
12811281
* @deprecated {@link #findAllAsync} is preferred.
12821282
* @see #setFindListener
12831283
*/
1284+
@Deprecated
12841285
public int findAll(String find) {
12851286
checkThread();
1287+
StrictMode.noteSlowCall("findAll blocks UI: prefer findAllAsync");
12861288
return mProvider.findAll(find);
12871289
}
12881290

0 commit comments

Comments
 (0)