Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73af4516 authored by Jake Wharton's avatar Jake Wharton
Browse files

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
parent 612ca9c6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1521,8 +1521,8 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
            } catch (RuntimeException e2 ) {
                rowNum = -1;
            }
            Log.w(LOG_TAG, "Search Suggestions cursor at row " + rowNum +
                            " returned exception" + e.toString());
            Log.w(LOG_TAG, "Search suggestions cursor at row " + rowNum +
                            " returned exception.", e);
            return null;
        }
    }