Merge "Fix bug that RTL posistion is not correct when initializing in CallLogActivity."
diff --git a/java/com/android/dialer/app/calllog/CallLogActivity.java b/java/com/android/dialer/app/calllog/CallLogActivity.java
index 1bb894c..c83d992 100644
--- a/java/com/android/dialer/app/calllog/CallLogActivity.java
+++ b/java/com/android/dialer/app/calllog/CallLogActivity.java
@@ -216,7 +216,7 @@
     @Override
     public Object instantiateItem(ViewGroup container, int position) {
       final CallLogFragment fragment = (CallLogFragment) super.instantiateItem(container, position);
-      if (position == TAB_INDEX_ALL) {
+      if (getRtlPosition(position) == TAB_INDEX_ALL) {
           mAllCallsFragment = fragment;
       }
       return fragment;