@Override
public void onReceive(Context context, Intent intent) {
try {
- String uploadedRemotePath = intent.getStringExtra(FileDownloader.EXTRA_REMOTE_PATH);
+ String uploadedRemotePath = intent.getStringExtra(FileUploader.EXTRA_REMOTE_PATH);
String accountName = intent.getStringExtra(FileUploader.ACCOUNT_NAME);
boolean sameAccount = getAccount() != null && accountName.equals(getAccount().name);
OCFile currentDir = getCurrentDir();
if (sameAccount && isDescendant) {
String linkedToRemotePath =
- intent.getStringExtra(FileDownloader.EXTRA_LINKED_TO_PATH);
+ intent.getStringExtra(FileUploader.EXTRA_LINKED_TO_PATH);
if (linkedToRemotePath == null || isAscendant(linkedToRemotePath)) {
refreshListOfFilesFragment();
}
setFile(file);
}
- /**
- * Shows the share view for sharing {@link OCFile} received as a
- * parameter in the second fragment.
- *
- * @param file {@link OCFile} File to share with
- */
- @Override
- public void showShareFile(OCFile file) {
- Intent intent = new Intent(this, ShareActivity.class);
- intent.putExtra(EXTRA_FILE, file);
- intent.putExtra(EXTRA_ACCOUNT, getAccount());
- startActivity(intent);
- }
-
@Override
protected void updateActionBarTitleAndHomeButton(OCFile chosenFile) {
if (mDualPane) {