OSDN Git Service

Show the saved picture for freed tabs.
authorPatrick Scott <phanna@android.com>
Wed, 22 Apr 2009 14:07:45 +0000 (10:07 -0400)
committerPatrick Scott <phanna@android.com>
Wed, 22 Apr 2009 14:07:45 +0000 (10:07 -0400)
commit2ed6edb70dae14691de2109e97fd54feedd84464
treed34f54db5fc6ccc837d2ef83d6b652afd7d668eb
parent31a6d1cb63a513712bad717a6239919fd5428fd1
Show the saved picture for freed tabs.

Create a small class containing the data needed to display the saved or current
picture. For freed tabs, inflate the picture and use the saved state from
mSavedState. Reorganize populatePickerData to use the current top window or the
saved state depending on if the tab has been freed.

There was another bug where onNewPicture would update the wrong FakeWebView due
to ListViews reusing the same view. Have the tab manage the new picture and
invalidate the FakeWebView. When reusing the view, clear out the tab's
FakeWebView field.

Wipe all the picker data at the same time the ImageGrid and ImageAdapter are
cleared.
src/com/android/browser/BrowserActivity.java
src/com/android/browser/FakeWebView.java
src/com/android/browser/ImageAdapter.java
src/com/android/browser/TabControl.java