|
@@ -1514,6 +1514,8 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
|
|
new Handler(Looper.getMainLooper()).post(switchViewsRunnable);
|
|
|
}
|
|
|
|
|
|
+ final Account currentAccount = AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext());
|
|
|
+
|
|
|
final RemoteOperation remoteOperation;
|
|
|
if (!currentSearchType.equals(SearchType.SHARED_FILTER)) {
|
|
|
boolean searchOnlyFolders = false;
|
|
@@ -1521,13 +1523,15 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
|
|
searchOnlyFolders = true;
|
|
|
}
|
|
|
|
|
|
- remoteOperation = new SearchOperation(event.getSearchQuery(), event.getSearchType(), searchOnlyFolders);
|
|
|
+ String userId = AccountManager.get(MainApp.getAppContext()).getUserData(currentAccount,
|
|
|
+ com.owncloud.android.lib.common.accounts.AccountUtils.Constants.KEY_USER_ID);
|
|
|
+
|
|
|
+ remoteOperation = new SearchOperation(event.getSearchQuery(), event.getSearchType(), searchOnlyFolders,
|
|
|
+ userId);
|
|
|
} else {
|
|
|
remoteOperation = new GetRemoteSharesOperation();
|
|
|
}
|
|
|
|
|
|
- final Account currentAccount = AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext());
|
|
|
-
|
|
|
remoteOperationAsyncTask = new AsyncTask() {
|
|
|
@Override
|
|
|
protected Object doInBackground(Object[] params) {
|