mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 922116 - Don't clear FaviconView image data in formatImage. r=lucasr,margaret
This commit is contained in:
parent
e85bedd215
commit
faae0adfb2
@ -64,7 +64,7 @@ public class FaviconView extends ImageView {
|
||||
private void formatImage() {
|
||||
// If we're called before bitmap is set, or before size is set, show blank.
|
||||
if (mIconBitmap == null || mActualWidth == 0 || mActualHeight == 0) {
|
||||
clearImage();
|
||||
showNoImage();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -157,12 +157,16 @@ public class FaviconView extends ImageView {
|
||||
hideBackground();
|
||||
}
|
||||
|
||||
private void showNoImage() {
|
||||
setImageBitmap(null);
|
||||
hideBackground();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear image and background shown by this view.
|
||||
*/
|
||||
public void clearImage() {
|
||||
setImageResource(0);
|
||||
hideBackground();
|
||||
showNoImage();
|
||||
mUnscaledBitmap = null;
|
||||
mIconBitmap = null;
|
||||
mIconKey = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user