Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
react-native-fast-image
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
react-native-fast-image
Commits
75a6ce76
Commit
75a6ce76
authored
Sep 24, 2018
by
(◕ᴥ◕)
Committed by
Dylan Vann
Sep 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle null view.glideUrl.
parent
82895486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java
...in/java/com/dylanvann/fastimage/FastImageViewManager.java
+4
-0
No files found.
android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java
View file @
75a6ce76
...
...
@@ -101,6 +101,10 @@ class FastImageViewManager extends SimpleViewManager<FastImageViewWithUrl> imple
public
void
onDropViewInstance
(
FastImageViewWithUrl
view
)
{
// This will cancel existing requests.
requestManager
.
clear
(
view
);
if
(
view
.
glideUrl
==
null
)
{
super
.
onDropViewInstance
(
view
);
return
;
}
final
String
key
=
view
.
glideUrl
.
toString
();
FastImageOkHttpProgressGlideModule
.
forget
(
key
);
List
<
FastImageViewWithUrl
>
viewsForKey
=
VIEWS_FOR_URLS
.
get
(
key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment