Page MenuHomePhabricator
Paste P2240

RecentSearchesFragment-cursor
ActivePublic

Authored by Niedzielski on Oct 27 2015, 4:02 PM.
Tags
None
Referenced Files
F2882468: RecentSearchesFragment-cursor
Oct 27 2015, 4:02 PM
Subscribers
Something like:
@Override
public void onLoadFinished(Loader<Cursor> cursorLoaderLoader, Cursor cursorLoader) {
adapter.swapCursor(cursorLoader);
boolean visible = recentSearchesList.getCount() > 0;
deleteButton.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
if (!isAdded()) {
return;
}
getActivity().supportInvalidateOptionsMenu();
}

Event Timeline

Niedzielski changed the title of this paste from untitled to RecentSearchesFragment-cursor.
Niedzielski updated the paste's language from autodetect to autodetect.

looks to be okay, I tested on two devices, and in the emulator. Fix will follow! One moment