pull/183/head
FongMi 3 years ago
parent 15ad569d59
commit 6d4e36eb2f
  1. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/DetailActivity.java
  2. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/presenter/TypePresenter.java

@ -803,7 +803,7 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis
}
private void checkKeep() {
mBinding.keep.setCompoundDrawablesRelativeWithIntrinsicBounds(Keep.find(getHistoryKey()) == null ? R.drawable.ic_detail_keep_off : R.drawable.ic_detail_keep_on, 0, 0, 0);
mBinding.keep.setCompoundDrawablesWithIntrinsicBounds(Keep.find(getHistoryKey()) == null ? R.drawable.ic_detail_keep_off : R.drawable.ic_detail_keep_on, 0, 0, 0);
}
private void createKeep() {

@ -37,7 +37,7 @@ public class TypePresenter extends Presenter {
ViewHolder holder = (ViewHolder) viewHolder;
holder.binding.text.setText(item.getTypeName());
holder.binding.text.setCompoundDrawablePadding(ResUtil.dp2px(4));
holder.binding.text.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, getIcon(item), 0);
holder.binding.text.setCompoundDrawablesWithIntrinsicBounds(0, 0, getIcon(item), 0);
holder.binding.text.setListener(() -> mListener.onRefresh(item));
setOnClickListener(holder, view -> mListener.onItemClick(item));
}

Loading…
Cancel
Save