use of com.owncloud.android.ui.fragment.EditShareFragment in project android by owncloud.
the class ShareActivity method showEditShare.
@Override
public void showEditShare(OCShare share) {
// replace current fragment with EditShareFragment on demand
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
Fragment editShareFragment = EditShareFragment.newInstance(share, getFile(), getAccount());
ft.replace(R.id.share_fragment_container, editShareFragment, TAG_EDIT_SHARE_FRAGMENT);
// BACK button will recover the previous fragment
ft.addToBackStack(null);
ft.commit();
}
use of com.owncloud.android.ui.fragment.EditShareFragment 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