use of com.owncloud.android.ui.fragment.SearchShareesFragment in project android by owncloud.
the class ShareActivity method refreshSharesFromStorageManager.
/**
* Updates the view, reading data from {@link com.owncloud.android.datamodel.FileDataStorageManager}
*/
private void refreshSharesFromStorageManager() {
ShareFileFragment shareFileFragment = getShareFileFragment();
if (shareFileFragment != null && shareFileFragment.isAdded()) {
// only if added to the view hierarchy!!
shareFileFragment.refreshCapabilitiesFromDB();
shareFileFragment.refreshUsersOrGroupsListFromDB();
shareFileFragment.refreshPublicShareFromDB();
}
SearchShareesFragment searchShareesFragment = getSearchFragment();
if (searchShareesFragment != null && searchShareesFragment.isAdded()) {
// only if added to the view hierarchy!!
searchShareesFragment.refreshUsersOrGroupsListFromDB();
}
EditShareFragment editShareFragment = getEditShareFragment();
if (editShareFragment != null && editShareFragment.isAdded()) {
editShareFragment.refreshUiFromDB();
}
}
Aggregations