No need to refill search results at each resume (fixes issue #155)
This commit is contained in:
parent
4f7858ad68
commit
a1116608e7
@ -55,6 +55,7 @@ public class SearchResults extends ListActivity {
|
|||||||
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
||||||
mQuery = intent.getStringExtra(SearchManager.QUERY);
|
mQuery = intent.getStringExtra(SearchManager.QUERY);
|
||||||
}
|
}
|
||||||
|
updateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -62,11 +63,11 @@ public class SearchResults extends ListActivity {
|
|||||||
if (Intent.ACTION_SEARCH.equals(intent.getAction()))
|
if (Intent.ACTION_SEARCH.equals(intent.getAction()))
|
||||||
mQuery = intent.getStringExtra(SearchManager.QUERY);
|
mQuery = intent.getStringExtra(SearchManager.QUERY);
|
||||||
super.onNewIntent(intent);
|
super.onNewIntent(intent);
|
||||||
|
updateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
updateView();
|
|
||||||
super.onResume();
|
super.onResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user