• Patrick Scott's avatar
    Show the saved picture for freed tabs. · 2ed6edb7
    Patrick Scott authored
    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.
    2ed6edb7
FakeWebView.java 3.48 KB