Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P2240
RecentSearchesFragment-cursor
Active
Public
Actions
Authored by
•
Niedzielski
on Oct 27 2015, 4:02 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F2882468: RecentSearchesFragment-cursor
Oct 27 2015, 4:02 PM
2015-10-27 16:02:06 (UTC+0)
Subscribers
Wikinaut
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
edited the content of this paste.
(Show Details)
Oct 27 2015, 4:02 PM
2015-10-27 16:02:06 (UTC+0)
•
Niedzielski
changed the title of this paste from untitled to
RecentSearchesFragment-cursor
.
•
Niedzielski
updated the paste's language from
autodetect
to
autodetect
.
Wikinaut
subscribed.
Oct 27 2015, 4:40 PM
2015-10-27 16:40:36 (UTC+0)
Comment Actions
looks to be okay, I tested on two devices, and in the emulator. Fix will follow! One moment
Log In to Comment