Skip to content

Commit 73af451

Browse files
committed
Pass SearchView suggestion cursor exception to Log.
When an error in fetching a column occurs in your suggestions cursor adapter this will ensure the stacktrace is logged to provide more context about what failed. Change-Id: Iafe4918caebb9b0fb712b758b2d3ace329fd2512
1 parent 612ca9c commit 73af451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/widget/SearchView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,8 +1521,8 @@ private Intent createIntentFromSuggestion(Cursor c, int actionKey, String action
15211521
} catch (RuntimeException e2 ) {
15221522
rowNum = -1;
15231523
}
1524-
Log.w(LOG_TAG, "Search Suggestions cursor at row " + rowNum +
1525-
" returned exception" + e.toString());
1524+
Log.w(LOG_TAG, "Search suggestions cursor at row " + rowNum +
1525+
" returned exception.", e);
15261526
return null;
15271527
}
15281528
}

0 commit comments

Comments
 (0)