Fix SearchFragment translation after orientation change.

Small edit to Andrew's CL 477577 - fixes the translation
of the ListView after switching to landscape when the
Dialpad is open and the ActionBar is up.

Change-Id: I8ef00e65aa37a15d5ce5c987de18311fe5320e46
diff --git a/src/com/android/dialer/list/SearchFragment.java b/src/com/android/dialer/list/SearchFragment.java
index 6abfcaa..d9dc735 100644
--- a/src/com/android/dialer/list/SearchFragment.java
+++ b/src/com/android/dialer/list/SearchFragment.java
@@ -172,9 +172,12 @@
         // Use negative shadow height instead of 0 to account for the 9-patch's shadow.
         int startTranslationValue =
                 mActivity.isDialpadShown() ? mActionBarHeight - mShadowHeight: -mShadowHeight;
-        int endTranslationValue =
-                mActivity.isDialpadShown() ? -mShadowHeight : mActionBarHeight -mShadowHeight;
-
+        int endTranslationValue = 0;
+        // Prevents ListView from being translated down after a rotation when the ActionBar is up.
+        if (animate || mActivity.isActionBarShowing()) {
+            endTranslationValue =
+                    mActivity.isDialpadShown() ? 0 : mActionBarHeight -mShadowHeight;
+        }
         if (animate) {
             Interpolator interpolator =
                     mActivity.isDialpadShown() ? AnimUtils.EASE_IN : AnimUtils.EASE_OUT ;