Vidmind - Nice upgrades#52
Open
amirlazarovich wants to merge 7 commits intomttkay:masterfrom
VidMind:vidmind
Open
Vidmind - Nice upgrades#52amirlazarovich wants to merge 7 commits intomttkay:masterfrom VidMind:vidmind
amirlazarovich wants to merge 7 commits intomttkay:masterfrom
VidMind:vidmind
Conversation
Added method setDiskCacheDirectory[193] Reason: Using this function when saving to desired storage device - so we could change back the directory ------------------------------------------------------------ ------------------------------------------------------------ CachedList: added method getGenericClass[28] Reason: Need to know the generic java.lang.Class of this generic class ------------------------------------------------------------- ------------------------------------------------------------- BetterHttp: added method get(String url, HashMap<String, String> params) [198] Reason: Need to have some easy way to attach GET parameters ------------------------------------------------------------- ------------------------------------------------------------- BetterActivityHelper: Changed method handleApplicationClosing[282] Added null check for tasks Reason: Sometime there was a nullPointerException ------------------------------------------------------------- ------------------------------------------------------------- ImageLoader: - Added method "decodeByte" - Changed method "downloadImage" - Added const "DEFAULT_IMAGE_MAX_SIZE" Reason: Needed to set a maximum image size when decoding byte[] to bitmaps. This is important when dealing with a lot of images which may consume too much memory ** COMMENTED OUT THIS CHANGE - maybe good for future use... -------------- Added method start(String imageUrl, ImageLoaderHandler handler, boolean enableDummyImage) Reason: In some cases we don't want to apply a dummy image that will replace our old one while downloading an image (like in SimpleWebImageView) ------------------------------------------------------------- ------------------------------------------------------------- WebImageView: Added method "getImage" Reason: Sometimes we need the underlying ImageView so we could operate straight on it (like setting a color filter) ------- Added method "getLastImageUrl" Reason: In some cases when we recycle this class (such as in FourStateGallery) we try to reassign the same image - which is useless if the old image is the same as the new ------------------------------------------------------------- ------------------------------------------------------------- General changes: - When the cache memory is enabled the default venue is tested to see if it has enough space if not than the secondary venue is tested and if it also fails than a message is logged. - when a file is written to the cache a test is run to see if there's enough space and if not a secondary venue is used.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Better cache handling, flexible ImageLoader, inheritance friendlier classes, minor bugfixes.
Notes: