forked from panpf/sketch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix the bug when the amount of data from the MyPhotos page goes int…
…o the details page
- Loading branch information
Flyge
committed
Sep 30, 2017
1 parent
1ec9300
commit 5df208b
Showing
7 changed files
with
85 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
sample app: | ||
* :bug: 修复在 MyPhotos 页面如果数据量超大的话就会崩溃的 bug | ||
|
||
[Sketch]: ../../sketch/src/main/java/me/xiaopan/sketch/Sketch.java | ||
[SketchImageView]: ../../sketch/src/main/java/me/xiaopan/sketch/SketchImageView.java | ||
[SketchUtils]: ../../sketch/src/main/java/me/xiaopan/sketch/util/SketchUtils.java | ||
[ImageShaper]: ../../sketch/src/main/java/me/xiaopan/sketch/shaper/ImageShaper.java | ||
[CancelCause]: ../../sketch/src/main/java/me/xiaopan/sketch/request/CancelCause.java | ||
[DownloadListener]: ../../sketch/src/main/java/me/xiaopan/sketch/request/DownloadListener.java | ||
[LoadListener]: ../../sketch/src/main/java/me/xiaopan/sketch/request/LoadListener.java | ||
[DisplayListener]: ../../sketch/src/main/java/me/xiaopan/sketch/request/DisplayListener.java | ||
[Resize]: ../../sketch/src/main/java/me/xiaopan/sketch/request/Resize.java | ||
[LoadOptions]: ../../sketch/src/main/java/me/xiaopan/sketch/request/LoadOptions.java | ||
[DisplayOptions]: ../../sketch/src/main/java/me/xiaopan/sketch/request/DisplayOptions.java | ||
[DownloadHelper]: ../../sketch/src/main/java/me/xiaopan/sketch/request/DownloadHelper.java | ||
[LoadHelper]: ../../sketch/src/main/java/me/xiaopan/sketch/request/LoadHelper.java | ||
[LoadHelper]: ../../sketch/src/main/java/me/xiaopan/sketch/request/LoadHelper.java | ||
[OptionsFilter]: ../../sketch/src/main/java/me/xiaopan/sketch/optionsfilter/OptionsFilter.java | ||
[Configuration]: ../../sketch/src/main/java/me/xiaopan/sketch/Configuration.java | ||
[ImageZoomer]: ../../sketch/src/main/java/me/xiaopan/sketch/viewfun/zoom/ImageZoomer.java | ||
[Initializer]: ../../sketch/src/main/java/me/xiaopan/sketch/Initializer.java | ||
[UriModel]: ../../sketch/src/main/java/me/xiaopan/sketch/uri/UriModel.java | ||
[AppIconUriModel]: ../../sketch/src/main/java/me/xiaopan/sketch/uri/AppIconUriModel.java | ||
[SLog]: ../../sketch/src/main/java/me/xiaopan/sketch/SLog.java | ||
[ImageProcessor]: ../../sketch/src/main/java/me/xiaopan/sketch/process/ImageProcessor.java | ||
[WrappedImageProcessor]: ../../sketch/src/main/java/me/xiaopan/sketch/process/WrappedImageProcessor.java | ||
|
||
[log]: ../wiki/log.md | ||
[resize]: ../wiki/resize.md | ||
[shape_size]: ../wiki/shape_size.md | ||
[pause_download]: ../wiki/pause_download.md | ||
[sketch_image_view]: ../wiki/sketch_image_view.md | ||
[display_apk_or_app_icon]: ../wiki/display_apk_or_app_icon.md | ||
[uri_model]: ../wiki/uri_model.md | ||
[uri]: ../wiki/uri.md | ||
[options_filter]: ../wiki/options_filter.md | ||
|
||
[#43]: https://github.com/panpf/sketch/issues/43 | ||
|
||
[sample-video-thumbnail]: ../../sample-video-thumbnail/ |
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
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
25 changes: 25 additions & 0 deletions
25
sample/src/main/java/me/xiaopan/sketchsample/util/DataTransferStation.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,25 @@ | ||
package me.xiaopan.sketchsample.util; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class DataTransferStation { | ||
private static final Map<String, Object> OBJECT_MAP = new HashMap<>(); | ||
|
||
private DataTransferStation() { | ||
} | ||
|
||
public static String put(Object o) { | ||
if (o == null) { | ||
return null; | ||
} | ||
|
||
String key = "DATA_TRANSFER_KEY_" + System.currentTimeMillis(); | ||
OBJECT_MAP.put(key, o); | ||
return key; | ||
} | ||
|
||
public static Object remove(String key) { | ||
return OBJECT_MAP.remove(key); | ||
} | ||
} |