| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.enhancedbookmarks; | 5 package org.chromium.chrome.browser.enhancedbookmarks; |
| 6 | 6 |
| 7 import android.animation.AnimatorListenerAdapter; | 7 import android.animation.AnimatorListenerAdapter; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.graphics.Bitmap; | 9 import android.graphics.Bitmap; |
| 10 import android.graphics.BitmapShader; | 10 import android.graphics.BitmapShader; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 boolean isSalientImageLoaded = model.salientImageForUrl(url, mSalientIma
geCallback); | 173 boolean isSalientImageLoaded = model.salientImageForUrl(url, mSalientIma
geCallback); |
| 174 | 174 |
| 175 // If there is no image or the image is still loading asynchronously, sh
ow pure color. | 175 // If there is no image or the image is still loading asynchronously, sh
ow pure color. |
| 176 if (!isSalientImageLoaded) { | 176 if (!isSalientImageLoaded) { |
| 177 mSolidColorImage.setImageDrawable(new CircularDrawable(color)); | 177 mSolidColorImage.setImageDrawable(new CircularDrawable(color)); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 } | 180 } |
| OLD | NEW |