summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorSailesh Nepal <sail@google.com>2014-09-15 03:36:31 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-15 03:36:31 +0000
commitb272d804387162d218e7eefc270fcd78328dbd53 (patch)
treed231583f89ee2bc53b52da456b9ff8b1ce97e582 /InCallUI
parent8643339fe2a7f63e0ac9eedd26e5e3922716b783 (diff)
parent4a9490429f4d7c65237d5bba5f4a92450e4b1541 (diff)
am f394b36f: am 99fe0928: am 167e9a39: Merge "Fix call state icon not showing for incoming calls" into lmp-dev
* commit 'f394b36f1ac9007f7333995eddab1f1722c94d5a': Fix call state icon not showing for incoming calls
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 809e66616..90a9d0645 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -515,7 +515,9 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mCallStateIcon.setVisibility(View.GONE);
} else {
mCallStateIcon.setVisibility(View.VISIBLE);
- mCallStateIcon.setImageAlpha(255);
+ // Invoke setAlpha(float) instead of setAlpha(int) to set the view's alpha. This is
+ // needed because the pulse animation operates on the view alpha.
+ mCallStateIcon.setAlpha(1.0f);
mCallStateIcon.setImageDrawable(connectionIcon);
}
@@ -542,7 +544,9 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mCallStateLabel.setText(null);
mCallStateLabel.setAlpha(0);
mCallStateLabel.setVisibility(View.GONE);
- mCallStateIcon.setImageAlpha(0);
+ // Invoke setAlpha(float) instead of setAlpha(int) to set the view's alpha. This is
+ // needed because the pulse animation operates on the view alpha.
+ mCallStateIcon.setAlpha(0.0f);
mCallStateIcon.setVisibility(View.GONE);
mCallStateVideoCallIcon.setVisibility(View.GONE);