diff options
Diffstat (limited to 'src/com/android/browser/Tab.java')
| -rw-r--r-- | src/com/android/browser/Tab.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 69213cd56..3b283cc2d 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -1435,6 +1435,15 @@ class Tab implements PictureListener { }; } + /** + * This is used to get a new ID when the tab has been preloaded, before it is displayed and + * added to TabControl. Preloaded tabs can be created before restoreInstanceState, leading + * to overlapping IDs between the preloaded and restored tabs. + */ + public void refreshIdAfterPreload() { + mId = TabControl.getNextId(); + } + public void updateShouldCaptureThumbnails() { if (mWebViewController.shouldCaptureThumbnails()) { synchronized (Tab.this) { |
