Loading res/drawable-hdpi/ic_play_active_holo_dark.png 0 → 100644 +1.81 KiB Loading image diff... res/drawable-mdpi/ic_play_active_holo_dark.png 0 → 100644 +1.35 KiB Loading image diff... res/drawable-xhdpi/ic_play_active_holo_dark.png 0 → 100644 +2.39 KiB Loading image diff... src/com/android/contacts/calllog/CallLogAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -534,7 +534,7 @@ public class CallLogAdapter extends GroupingListAdapter callTypes, date, duration, name, ntype, label, lookupUri, null); } final boolean isNew = CallLogQuery.isNewSection(c); final boolean isNew = c.getInt(CallLogQuery.IS_READ) == 0; // New items also use the highlighted version of the text. final boolean isHighlighted = isNew; mCallLogViewsHelper.setPhoneCallDetails(views, details, isHighlighted); Loading src/com/android/contacts/calllog/CallLogListItemHelper.java +4 −3 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ import android.view.View; if (canPlay) { // Playback action takes preference. configurePlaySecondaryAction(views); configurePlaySecondaryAction(views, isHighlighted); views.dividerView.setVisibility(View.VISIBLE); } else if (canCall) { // Call is the secondary action. Loading Loading @@ -99,9 +99,10 @@ import android.view.View; } /** Sets the secondary action to correspond to the play button. */ private void configurePlaySecondaryAction(CallLogListItemViews views) { private void configurePlaySecondaryAction(CallLogListItemViews views, boolean isHighlighted) { views.secondaryActionView.setVisibility(View.VISIBLE); views.secondaryActionView.setImageResource(R.drawable.ic_play); views.secondaryActionView.setImageResource( isHighlighted ? R.drawable.ic_play_active_holo_dark : R.drawable.ic_play_holo_dark); views.secondaryActionView.setContentDescription( mResources.getString(R.string.description_call_log_play_button)); } Loading Loading
src/com/android/contacts/calllog/CallLogAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -534,7 +534,7 @@ public class CallLogAdapter extends GroupingListAdapter callTypes, date, duration, name, ntype, label, lookupUri, null); } final boolean isNew = CallLogQuery.isNewSection(c); final boolean isNew = c.getInt(CallLogQuery.IS_READ) == 0; // New items also use the highlighted version of the text. final boolean isHighlighted = isNew; mCallLogViewsHelper.setPhoneCallDetails(views, details, isHighlighted); Loading
src/com/android/contacts/calllog/CallLogListItemHelper.java +4 −3 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ import android.view.View; if (canPlay) { // Playback action takes preference. configurePlaySecondaryAction(views); configurePlaySecondaryAction(views, isHighlighted); views.dividerView.setVisibility(View.VISIBLE); } else if (canCall) { // Call is the secondary action. Loading Loading @@ -99,9 +99,10 @@ import android.view.View; } /** Sets the secondary action to correspond to the play button. */ private void configurePlaySecondaryAction(CallLogListItemViews views) { private void configurePlaySecondaryAction(CallLogListItemViews views, boolean isHighlighted) { views.secondaryActionView.setVisibility(View.VISIBLE); views.secondaryActionView.setImageResource(R.drawable.ic_play); views.secondaryActionView.setImageResource( isHighlighted ? R.drawable.ic_play_active_holo_dark : R.drawable.ic_play_holo_dark); views.secondaryActionView.setContentDescription( mResources.getString(R.string.description_call_log_play_button)); } Loading