mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
send intent with filepath so details view can be updated
This commit is contained in:
parent
fcf40b4423
commit
50d7b20bf6
2 changed files with 4 additions and 2 deletions
|
@ -152,6 +152,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
|
|||
}
|
||||
mNotificationMngr.cancel(1);
|
||||
Intent end = new Intent(DOWNLOAD_FINISH_MESSAGE);
|
||||
end.putExtra(EXTRA_FILE_PATH, file.getAbsolutePath());
|
||||
sendBroadcast(end);
|
||||
}
|
||||
|
||||
|
|
|
@ -309,9 +309,10 @@ public class FileDetailFragment extends SherlockFragment implements
|
|||
private class DownloadFinishReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
updateFileDetails();
|
||||
((OCFile)mIntent.getParcelableExtra(EXTRA_FILE)).setStoragePath(intent.getStringExtra(FileDownloader.EXTRA_FILE_PATH));
|
||||
updateFileDetails(mIntent);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue