Fix two bugs in ImportKeys screen (issue #416)

This commit is contained in:
uberspot 2014-03-14 00:59:10 +02:00
parent b12392594f
commit 985a6793c0
2 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,7 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
}
LinearLayout ll = (LinearLayout) convertView.findViewById(R.id.list);
ll.removeAllViews();
if (entry.userIds.size() == 1) {
ll.setVisibility(View.GONE);
} else {

View File

@ -89,6 +89,7 @@ public class ImportKeysListServerLoader
try {
ArrayList<ImportKeysListEntry> searchResult = server.search(query);
mEntryList.clear();
// add result to data
mEntryList.addAll(searchResult);
mEntryListWrapper = new AsyncTaskResultWrapper<ArrayList<ImportKeysListEntry>>(mEntryList, null);