-
- Downloads
Bug 1258470 - 2. Move thumbnail code out of BitmapUtils; r=nalexander
Move the "thumbnail:" handler out of BitmapUtils and into ThumbnailHelper and PromptListItem. The patch adds two overloads of the getAndProcessThumbnailFor method in ThumbnailHelper, which handle the tasks of getting a thumbnail for a specific tab and calling a given BitmapLoader. Because only PromptListItem makes use of the "thumbnail:" convention, the actual handling of "thumbnail:" is moved to PromptListItem, which calls ThumbnailHelper to get the thumbnail.
Showing
- mobile/android/base/java/org/mozilla/gecko/ThumbnailHelper.java 23 additions, 0 deletions.../android/base/java/org/mozilla/gecko/ThumbnailHelper.java
- mobile/android/base/java/org/mozilla/gecko/prompts/PromptListItem.java 10 additions, 2 deletions...d/base/java/org/mozilla/gecko/prompts/PromptListItem.java
- mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/BitmapUtils.java 1 addition, 25 deletions...view/src/main/java/org/mozilla/gecko/gfx/BitmapUtils.java
Please register or sign in to comment