diff options
author | Vivek Sekhar <vsekhar@codeaurora.org> | 2015-12-22 10:51:04 -0800 |
---|---|---|
committer | jrizzoli <joey@cyanogenmoditalia.it> | 2016-01-11 22:03:25 +0100 |
commit | 6213e2e94b1f0ea924dfe52ee5192c1e612e33c9 (patch) | |
tree | 4873de4a048e2028c61a9185c4e6a46617a8cfb3 /src/com | |
parent | 2f2ff57ea554536b3ef9eaea604165ab7c75541a (diff) | |
download | android_packages_apps_Gello-6213e2e94b1f0ea924dfe52ee5192c1e612e33c9.tar.gz android_packages_apps_Gello-6213e2e94b1f0ea924dfe52ee5192c1e612e33c9.tar.bz2 android_packages_apps_Gello-6213e2e94b1f0ea924dfe52ee5192c1e612e33c9.zip |
Get tab id from Tab for onHistoryItemCommit
Do not query the tab id from TabControl. The tab might be getting recreated
because of restore during this time the current tab & thier ids might not be set.
Tab.this will always ensure we get the correct tab id.
Change-Id: I396e9ffcb35c468fd3d916ba4cd49cb202a2017c
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/Tab.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 6919300f..2ddd2d1c 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -613,8 +613,7 @@ class Tab implements PictureListener { final int maxIdx = view.copyBackForwardList().getSize(); final WebView wv = view; final int currIdx = index; - final int currentTabIdx = (int) mWebViewController.getTabControl(). - getCurrentTab().getId(); + final int currentTabIdx = (int) Tab.this.getId(); view.getSnapshotIds(new ValueCallback <List<Integer>>() { @Override public void onReceiveValue(List<Integer> ids) { |