Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
ImageVideoBanner
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
ImageVideoBanner
Commits
57b3696a
Commit
57b3696a
authored
Aug 03, 2021
by
gaodapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加一个注释
parent
907a99ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ImageVideoFragment.java
.../java/com/widget/imagebanner/view/ImageVideoFragment.java
+2
-1
No files found.
banner/src/main/java/com/widget/imagebanner/view/ImageVideoFragment.java
View file @
57b3696a
...
...
@@ -359,7 +359,8 @@ public class ImageVideoFragment extends Fragment {
@Override
public
void
onDestroyView
()
{
//2021/2/24 记录:这里要判断LoadingImage的存在,否则会回收本地Resource,造成加载错误.本地id标识的图片也会处理为BitmapDrawable
//2021/2/24 记录:这里要判断LoadingImage的存在,否则会回收本地Resource,造成加载错误.
// 本地id标识的图片也会处理为BitmapDrawable.另外加载图片时不会初始化ivWaitLoading,所以这里也要判断非空
if
(
bannerBean
.
getLoadingImage
()
!=
null
&&
ivWaitLoading
!=
null
)
{
Drawable
drawable
=
ivWaitLoading
.
getDrawable
();
ivWaitLoading
.
setImageDrawable
(
null
);
...
...
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