diff options
author | Sailesh Nepal <sail@google.com> | 2014-09-15 04:50:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-15 04:50:15 +0000 |
commit | 735d4e81a9df8ce6edade1d2b32c3a8709621967 (patch) | |
tree | 8593b8c129143ce37f1e867096e99869d74c9ed7 /InCallUI | |
parent | d806e0cd35e3d4fde9b58cc397f9777a4e818f1b (diff) | |
parent | 4e98ef3a9a90e8ec02ed4fad06647cee91a9659c (diff) |
am 06ebd50a: am 167e9a39: Merge "Fix call state icon not showing for incoming calls" into lmp-dev
* commit '06ebd50ae608abd857a128f668436d3471b5133c':
Fix call state icon not showing for incoming calls
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 8 |
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); |