diff options
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardFragment.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 179565a64..70eb631c2 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -23,6 +23,7 @@ import android.animation.ObjectAnimator; import android.app.Activity; import android.content.Context; import android.content.res.ColorStateList; +import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.drawable.AnimationDrawable; @@ -650,13 +651,17 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr Log.d(this, "Setting primary call"); // set the name field. setPrimaryName(name, nameIsNumber); + boolean elapsedTimeSingleLine = getResources().getBoolean( + R.bool.caller_name_and_elapsed_time_in_one_line); if (TextUtils.isEmpty(number) && TextUtils.isEmpty(label)) { mCallNumberAndLabel.setVisibility(View.GONE); mElapsedTime.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START); } else { mCallNumberAndLabel.setVisibility(View.VISIBLE); - mElapsedTime.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_END); + if (elapsedTimeSingleLine) { + mElapsedTime.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_END); + } } setPrimaryPhoneNumber(number); |