public override bool OnOptionsItemSelected(IMenuItem item) { if (item.ItemId == Resource.Id.sample_action) { ToggleLogin(); item.SetTitle(mLoggedIn ? Resource.String.log_out : Resource.String.log_in); // Notify the system that the status of our roots has changed. This will trigger // a call to MyCloudProvider.queryRoots() and force a refresh of the system // picker UI. It's important to call this or stale results may persist. Activity.ContentResolver.NotifyChange(DocumentsContract.BuildRootsUri(AUTHORITY), null, false); } return(true); }