From 40685d9152bff972cd7c3c18685cbcee43725713 Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Sat, 2 Jun 2018 16:44:13 +0300 Subject: InCallUI: Refactor primary call info card The primary call info card was sized after the CallButtonFragment making the call info displayed small. This patch fixes the sizing Change-Id: If5dded59960c2d4534d3d7377b6970e17977d33c --- InCallUI/res/layout-large/primary_call_info.xml | 220 +++++++++++++++++++++ .../res/layout-w500dp-land/call_card_fragment.xml | 4 +- InCallUI/res/values-large/bools.xml | 7 + InCallUI/res/values-w500dp-land/dimens.xml | 3 +- InCallUI/res/values/bools.xml | 7 + .../src/com/android/incallui/CallCardFragment.java | 7 +- 6 files changed, 244 insertions(+), 4 deletions(-) create mode 100644 InCallUI/res/layout-large/primary_call_info.xml create mode 100644 InCallUI/res/values-large/bools.xml create mode 100644 InCallUI/res/values/bools.xml diff --git a/InCallUI/res/layout-large/primary_call_info.xml b/InCallUI/res/layout-large/primary_call_info.xml new file mode 100644 index 000000000..c4bea4355 --- /dev/null +++ b/InCallUI/res/layout-large/primary_call_info.xml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InCallUI/res/layout-w500dp-land/call_card_fragment.xml b/InCallUI/res/layout-w500dp-land/call_card_fragment.xml index 6d7750c55..081d40586 100644 --- a/InCallUI/res/layout-w500dp-land/call_card_fragment.xml +++ b/InCallUI/res/layout-w500dp-land/call_card_fragment.xml @@ -151,12 +151,12 @@ diff --git a/InCallUI/res/values-large/bools.xml b/InCallUI/res/values-large/bools.xml new file mode 100644 index 000000000..b623176ae --- /dev/null +++ b/InCallUI/res/values-large/bools.xml @@ -0,0 +1,7 @@ + + + + false + diff --git a/InCallUI/res/values-w500dp-land/dimens.xml b/InCallUI/res/values-w500dp-land/dimens.xml index 42b0886f8..928a8591a 100644 --- a/InCallUI/res/values-w500dp-land/dimens.xml +++ b/InCallUI/res/values-w500dp-land/dimens.xml @@ -33,5 +33,6 @@ 20dp - 50dp + + 300dp diff --git a/InCallUI/res/values/bools.xml b/InCallUI/res/values/bools.xml new file mode 100644 index 000000000..ed0b4c738 --- /dev/null +++ b/InCallUI/res/values/bools.xml @@ -0,0 +1,7 @@ + + + + true + 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