Search in sources :

Example 1 with RootCursor

use of com.owncloud.android.providers.cursors.RootCursor in project android by owncloud.

the class DocumentsStorageProvider method queryRoots.

@Override
public Cursor queryRoots(String[] projection) throws FileNotFoundException {
    initiateStorageMap();
    final RootCursor result = new RootCursor(projection);
    for (Account account : AccountUtils.getAccounts(getContext())) result.addRoot(account, getContext());
    return result;
}
Also used : Account(android.accounts.Account) RootCursor(com.owncloud.android.providers.cursors.RootCursor)

Aggregations

Account (android.accounts.Account)1 RootCursor (com.owncloud.android.providers.cursors.RootCursor)1