Skip to content

Commit

Permalink
Fix infinite loading issue when a "finished-loading" event was receiv…
Browse files Browse the repository at this point in the history
…ed while device was on pause (bus unregistered)
  • Loading branch information
Nilhcem committed May 7, 2013
1 parent 1880dfb commit 55cf9c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/com/nilhcem/hostseditor/list/ListHostsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class ListHostsActivity extends BaseActivity {
@InjectView(R.id.listLoading) ProgressBar mProgressBar;
@InjectView(R.id.listLoadingMsg) TextView mLoadingMsg;
private ListHostsFragment mFragment;
private String mSearchQuery;
private String mSearchQuery = STR_EMPTY;
private MenuItem mSearchItem;

@Override
Expand Down Expand Up @@ -84,6 +84,12 @@ public boolean onQueryTextChange(String newText) {
return true;
}

@Override
protected void onResume() {
super.onResume();
mFragment.filterList(mSearchQuery);
}

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (keyCode) {
Expand Down

0 comments on commit 55cf9c2

Please sign in to comment.