|
@@ -23,7 +23,6 @@
|
|
|
|
|
|
package com.owncloud.android.ui.fragment;
|
|
package com.owncloud.android.ui.fragment;
|
|
|
|
|
|
-import android.accounts.Account;
|
|
|
|
import android.accounts.AccountManager;
|
|
import android.accounts.AccountManager;
|
|
import android.app.SearchManager;
|
|
import android.app.SearchManager;
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
@@ -96,9 +95,6 @@ public class FileDetailSharingFragment extends Fragment implements ShareeListAda
|
|
private static final String ARG_USER = "USER";
|
|
private static final String ARG_USER = "USER";
|
|
public static final int PERMISSION_EDITING_ALLOWED = 17;
|
|
public static final int PERMISSION_EDITING_ALLOWED = 17;
|
|
|
|
|
|
- // to show share with users/groups info
|
|
|
|
- private List<OCShare> shares;
|
|
|
|
-
|
|
|
|
private OCFile file;
|
|
private OCFile file;
|
|
private User user;
|
|
private User user;
|
|
private OCCapability capabilities;
|
|
private OCCapability capabilities;
|
|
@@ -283,7 +279,9 @@ public class FileDetailSharingFragment extends Fragment implements ShareeListAda
|
|
|
|
|
|
private void setShareWithUserInfo() {
|
|
private void setShareWithUserInfo() {
|
|
// TODO Refactoring: create a new {@link ShareUserListAdapter} instance with every call should not be needed
|
|
// TODO Refactoring: create a new {@link ShareUserListAdapter} instance with every call should not be needed
|
|
- shares = fileDataStorageManager.getSharesWithForAFile(file.getRemotePath(), account.name);
|
|
|
|
|
|
+ // to show share with users/groups info
|
|
|
|
+ List<OCShare> shares = fileDataStorageManager.getSharesWithForAFile(file.getRemotePath(),
|
|
|
|
+ user.toPlatformAccount().name);
|
|
if (shares.size() > 0) {
|
|
if (shares.size() > 0) {
|
|
AccountManager accountManager = AccountManager.get(getContext());
|
|
AccountManager accountManager = AccountManager.get(getContext());
|
|
String userId = accountManager.getUserData(user.toPlatformAccount(),
|
|
String userId = accountManager.getUserData(user.toPlatformAccount(),
|