mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 19:18:27 +00:00
Fix for detached illegalstateexception
This commit is contained in:
parent
6fedc6b737
commit
ff41c6763d
@ -112,9 +112,12 @@ public class ConversationListFragment extends SherlockListFragment
|
||||
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
|
||||
@Override
|
||||
public boolean onQueryTextSubmit(String query) {
|
||||
ConversationListFragment.this.queryFilter = query;
|
||||
ConversationListFragment.this.getLoaderManager().restartLoader(0, null, ConversationListFragment.this);
|
||||
return true;
|
||||
if (isAdded()) {
|
||||
ConversationListFragment.this.queryFilter = query;
|
||||
ConversationListFragment.this.getLoaderManager().restartLoader(0, null, ConversationListFragment.this);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
public boolean onQueryTextChange(String newText) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user