I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 64c44838 authored by str4d's avatar str4d
Browse files

Hide list when loading, remove Toast notification from onLoadFinished()

Addressbook Loader works (from previous commit). Todo: put name count
in list header.
parent 76f9259e
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,7 @@ public class AddressbookFragment extends ListFragment implements
public void filterAddresses(String query) {
mCurFilter = !TextUtils.isEmpty(query) ? query : null;
setListShown(false);
getLoaderManager().restartLoader("private".equals(mBook) ?
PRIVATE_LOADER_ID : ROUTER_LOADER_ID, null, this);
}
......@@ -158,14 +159,6 @@ public class AddressbookFragment extends ListFragment implements
} else {
setListShownNoAnimation(true);
}
// Show Toast with addressbook size
int sz = data.size();
Context context = getActivity().getApplicationContext();
CharSequence text = sz + " hosts in address book.";
if (sz == 1)
text = "1 host in address book.";
Toast.makeText(context, text, Toast.LENGTH_LONG).show();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment