* @param operation Get Shared Files
* @param result Result of the operation
*/
- private void onGetSharedFilesOperationFinish(GetSharedFilesOperation operation, RemoteOperationResult result) {
+ private void onGetSharesOperationFinish(GetSharesOperation operation, RemoteOperationResult result) {
- // TODO
// Refresh the filelist with the information
- refeshListOfFilesFragment();
+ refeshListOfFilesFragment();
+
+ mRefreshSharesInProgress = false;
+ if (!mSyncInProgress) {
+ setSupportProgressBarIndeterminateVisibility(false);
+ }
}
/**
}
- private void startGetSharedFiles() {
+ private void startGetShares() {
// Get shared files/folders
- AccountManager accountMngr = AccountManager.get(this);
- String urlServer = accountMngr.getUserData(getAccount(), OwnCloudAccount.Constants.KEY_OC_BASE_URL);
-
- RemoteOperation getSharedFiles = new GetSharedFilesOperation(urlServer, mStorageManager);
- getSharedFiles.execute(getAccount(), this, this, mHandler, this);
+ RemoteOperation getShares = new GetSharesOperation(mStorageManager);
+ getShares.execute(getAccount(), this, this, mHandler, this);
+ mRefreshSharesInProgress = true;
+ setSupportProgressBarIndeterminateVisibility(true);
+
}
// public void enableDisableViewGroup(ViewGroup viewGroup, boolean enabled) {