tus / tus-android-client

The tus client for Android.
https://tus.io/
161 stars 46 forks source link

TusAndroidUpload requires Activity instead of Context #26

Closed encosw closed 5 years ago

encosw commented 5 years ago

The signature of the TusAndroidUpload is the following: TusAndroidUpload(Uri uri, Activity activity)

Since the Activity itself is not used for anything but getting a ContentResolver from it, a Context could be used instead, thus relaxing the requirements for its usage.

Acconut commented 5 years ago

That's true, nice catch! Would you mind sending a pull request containing the change?