|
@@ -1588,7 +1588,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|
|
|
|
|
@Subscribe(threadMode = ThreadMode.BACKGROUND)
|
|
@Subscribe(threadMode = ThreadMode.BACKGROUND)
|
|
public void onMessageEvent(CommentsEvent event) {
|
|
public void onMessageEvent(CommentsEvent event) {
|
|
- mAdapter.refreshCommentsCount(event.remoteId);
|
|
|
|
|
|
+ mAdapter.refreshCommentsCount(event.getRemoteId());
|
|
}
|
|
}
|
|
|
|
|
|
@Subscribe(threadMode = ThreadMode.BACKGROUND)
|
|
@Subscribe(threadMode = ThreadMode.BACKGROUND)
|
|
@@ -1598,13 +1598,13 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|
OwnCloudClient client = clientFactory.create(user);
|
|
OwnCloudClient client = clientFactory.create(user);
|
|
|
|
|
|
ToggleFavoriteRemoteOperation toggleFavoriteOperation = new ToggleFavoriteRemoteOperation(
|
|
ToggleFavoriteRemoteOperation toggleFavoriteOperation = new ToggleFavoriteRemoteOperation(
|
|
- event.shouldFavorite, event.remotePath);
|
|
|
|
|
|
+ event.getShouldFavorite(), event.getRemotePath());
|
|
RemoteOperationResult remoteOperationResult = toggleFavoriteOperation.execute(client);
|
|
RemoteOperationResult remoteOperationResult = toggleFavoriteOperation.execute(client);
|
|
|
|
|
|
if (remoteOperationResult.isSuccess()) {
|
|
if (remoteOperationResult.isSuccess()) {
|
|
- boolean removeFromList = currentSearchType == SearchType.FAVORITE_SEARCH && !event.shouldFavorite;
|
|
|
|
|
|
+ boolean removeFromList = currentSearchType == SearchType.FAVORITE_SEARCH && !event.getShouldFavorite();
|
|
setEmptyListMessage(SearchType.FAVORITE_SEARCH);
|
|
setEmptyListMessage(SearchType.FAVORITE_SEARCH);
|
|
- mAdapter.setFavoriteAttributeForItemID(event.remotePath, event.shouldFavorite, removeFromList);
|
|
|
|
|
|
+ mAdapter.setFavoriteAttributeForItemID(event.getRemotePath(), event.getShouldFavorite(), removeFromList);
|
|
}
|
|
}
|
|
|
|
|
|
} catch (ClientFactory.CreationException e) {
|
|
} catch (ClientFactory.CreationException e) {
|
|
@@ -1692,7 +1692,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|
String privateKey = arbitraryDataProvider.getValue(user, EncryptionUtils.PRIVATE_KEY);
|
|
String privateKey = arbitraryDataProvider.getValue(user, EncryptionUtils.PRIVATE_KEY);
|
|
|
|
|
|
FileDataStorageManager storageManager = mContainerActivity.getStorageManager();
|
|
FileDataStorageManager storageManager = mContainerActivity.getStorageManager();
|
|
- OCFile file = storageManager.getFileByRemoteId(event.remoteId);
|
|
|
|
|
|
+ OCFile file = storageManager.getFileByRemoteId(event.getRemoteId());
|
|
|
|
|
|
if (publicKey.isEmpty() || privateKey.isEmpty()) {
|
|
if (publicKey.isEmpty() || privateKey.isEmpty()) {
|
|
Log_OC.d(TAG, "no public key for " + user.getAccountName());
|
|
Log_OC.d(TAG, "no public key for " + user.getAccountName());
|
|
@@ -1706,10 +1706,10 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|
dialog.show(getParentFragmentManager(), SETUP_ENCRYPTION_DIALOG_TAG);
|
|
dialog.show(getParentFragmentManager(), SETUP_ENCRYPTION_DIALOG_TAG);
|
|
} else {
|
|
} else {
|
|
encryptFolder(file,
|
|
encryptFolder(file,
|
|
- event.localId,
|
|
|
|
- event.remoteId,
|
|
|
|
- event.remotePath,
|
|
|
|
- event.shouldBeEncrypted,
|
|
|
|
|
|
+ event.getLocalId(),
|
|
|
|
+ event.getRemoteId(),
|
|
|
|
+ event.getRemotePath(),
|
|
|
|
+ event.getShouldBeEncrypted(),
|
|
publicKey,
|
|
publicKey,
|
|
privateKey);
|
|
privateKey);
|
|
}
|
|
}
|