diff options
author | Yorke Lee <yorkelee@google.com> | 2014-09-29 19:45:20 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-29 19:45:20 +0000 |
commit | 4c2f20db1590aa733d2b9b602891069f31573fe0 (patch) | |
tree | 9f7cb35c323ef46e6d491dc1a0a18976a51ddb3b | |
parent | 80c5e3e82993fd99dba7a6d1d4aa69f3b51c433f (diff) | |
parent | cb5967971266070ca2b0c7b62ca922e90a699424 (diff) |
am cb596797: am 9c60e8c2: am 983ffb53: am fcd46027: am 56493453: Fix another bug with RTL tabs
* commit 'cb5967971266070ca2b0c7b62ca922e90a699424':
Fix another bug with RTL tabs
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index 24177f73f..024e3d914 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -183,6 +183,11 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand } @Override + public long getItemId(int position) { + return getRtlPosition(position); + } + + @Override public Fragment getItem(int position) { switch (getRtlPosition(position)) { case TAB_INDEX_SPEED_DIAL: @@ -206,7 +211,7 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand // Copy the fragments that the FragmentManager finds so that we can store them in // instance variables for later. final Fragment fragment = - (Fragment) super.instantiateItem(container, getRtlPosition(position)); + (Fragment) super.instantiateItem(container, position); if (fragment instanceof SpeedDialFragment) { mSpeedDialFragment = (SpeedDialFragment) fragment; } else if (fragment instanceof CallLogFragment) { |