Commit 9716761e authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Clean adapter and do not close cursor too early

parent a49d4ad9
......@@ -825,10 +825,12 @@ public class MainActivity extends ActionBarActivity implements OnItemClickListen
public boolean onQueryTextChange(String newText) {
if (newText.length() < 3)
if (newText.length() < 3) {
return false;
Cursor cursor = MediaDatabase.getInstance().queryMedia(newText);
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment