summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-08-20 16:50:20 -0700
committerNancy Chen <nancychen@google.com>2014-08-20 16:50:20 -0700
commit42e65be3a7c1658acf6d000b3fc1a7bb75cac3ad (patch)
tree5ba4f924be1d720017a27d13cd008bf81b841a67
parentb8249f3727e4d233215f4cfbecdd7ed175ce5231 (diff)
downloadpackages_apps_InCallUI-42e65be3a7c1658acf6d000b3fc1a7bb75cac3ad.tar.gz
packages_apps_InCallUI-42e65be3a7c1658acf6d000b3fc1a7bb75cac3ad.tar.bz2
packages_apps_InCallUI-42e65be3a7c1658acf6d000b3fc1a7bb75cac3ad.zip
Adjust SIM icon tint and fix InCallUI glitches for call state icon.
Default SIM icon tint should be the same as the color of the call state label. Fixed animation for call state icon. Bug: 16685783 Change-Id: Ie170027e0a14096442fb78c8e6d8b469aa03b51d
-rw-r--r--res/layout/primary_call_info.xml2
-rw-r--r--res/layout/select_account_list_item.xml1
-rw-r--r--src/com/android/incallui/CallCardFragment.java6
3 files changed, 8 insertions, 1 deletions
diff --git a/res/layout/primary_call_info.xml b/res/layout/primary_call_info.xml
index 4231922d..1f3b9549 100644
--- a/res/layout/primary_call_info.xml
+++ b/res/layout/primary_call_info.xml
@@ -47,7 +47,7 @@
android:layout_marginEnd="4dp"
android:baselineAlignBottom="true"
android:tint="@color/incall_accent_color"
- android:alpha="0.7"
+ android:alpha="0.0"
android:scaleType="centerInside"
android:visibility="gone" />
diff --git a/res/layout/select_account_list_item.xml b/res/layout/select_account_list_item.xml
index 0b24c9b9..bb618ffe 100644
--- a/res/layout/select_account_list_item.xml
+++ b/res/layout/select_account_list_item.xml
@@ -24,6 +24,7 @@
<ImageView android:id="@+id/icon"
android:layout_width="48dp"
android:layout_height="48dp"
+ android:tint="@color/dialtacts_secondary_text_color"
android:scaleType="center" />
<TextView android:id="@+id/text"
diff --git a/src/com/android/incallui/CallCardFragment.java b/src/com/android/incallui/CallCardFragment.java
index 8ca1dd67..6defe799 100644
--- a/src/com/android/incallui/CallCardFragment.java
+++ b/src/com/android/incallui/CallCardFragment.java
@@ -502,6 +502,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mCallStateIcon.setVisibility(View.GONE);
} else {
mCallStateIcon.setVisibility(View.VISIBLE);
+ mCallStateIcon.setImageAlpha(255);
mCallStateIcon.setImageDrawable(connectionIcon);
}
@@ -515,8 +516,10 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
if (state == Call.State.ACTIVE || state == Call.State.CONFERENCED) {
mCallStateLabel.clearAnimation();
+ mCallStateIcon.clearAnimation();
} else {
mCallStateLabel.startAnimation(mPulseAnimation);
+ mCallStateIcon.startAnimation(mPulseAnimation);
}
} else {
Animation callStateAnimation = mCallStateLabel.getAnimation();
@@ -526,6 +529,8 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mCallStateLabel.setText(null);
mCallStateLabel.setAlpha(0);
mCallStateLabel.setVisibility(View.GONE);
+ mCallStateIcon.setImageAlpha(0);
+ mCallStateIcon.setVisibility(View.GONE);
mCallStateVideoCallIcon.setVisibility(View.GONE);
}
@@ -962,6 +967,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
@Override
public void onAnimationStart(Animator animation) {
assignTranslateAnimation(mCallStateLabel, 1);
+ assignTranslateAnimation(mCallStateIcon, 1);
assignTranslateAnimation(mPrimaryName, 2);
assignTranslateAnimation(mCallNumberAndLabel, 3);
assignTranslateAnimation(mCallTypeLabel, 4);