-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from fanhero/feature/settimeout
Exposed 'timeout' property on both platforms
- Loading branch information
Showing
12 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
android/android/src/av/imageview/utils/glide/StreamModelLoaderWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package av.imageview.utils.glide; | ||
|
||
import java.io.InputStream; | ||
|
||
import com.bumptech.glide.load.model.GlideUrl; | ||
import com.bumptech.glide.load.data.DataFetcher; | ||
import com.bumptech.glide.load.model.ModelLoader; | ||
import com.bumptech.glide.load.model.stream.StreamModelLoader; | ||
|
||
/** | ||
* Workaround for <a href="https://github.com/bumptech/glide/issues/1832">bumptech/glide#1832</a>. | ||
* | ||
* @deprecated not needed after 3.8.0 | ||
*/ | ||
@Deprecated | ||
public class StreamModelLoaderWrapper<GlideUrl> implements StreamModelLoader<GlideUrl> { | ||
public final ModelLoader<GlideUrl, InputStream> wrapped; | ||
|
||
public StreamModelLoaderWrapper(ModelLoader<GlideUrl, InputStream> wrapped) { | ||
this.wrapped = wrapped; | ||
} | ||
|
||
@Override | ||
public DataFetcher<InputStream> getResourceFetcher(GlideUrl model, int width, int height) { | ||
return wrapped.getResourceFetcher(model, width, height); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters