Loading res/layout/condition_card.xml +4 −6 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingStart="16dp" android:background="?android:attr/colorAccent" android:elevation="2dp" android:clickable="true" Loading @@ -35,6 +34,7 @@ android:id="@+id/collapsed_group" android:layout_width="match_parent" android:layout_height="56dp" android:background="?android:attr/selectableItemBackground" android:orientation="horizontal" android:gravity="center"> Loading @@ -42,6 +42,7 @@ android:id="@android:id/icon" android:layout_width="24dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="32dp" android:tint="?android:attr/textColorPrimaryInverse" /> Loading @@ -58,10 +59,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:padding="16dp" android:tint="?android:attr/textColorPrimaryInverse" android:clickable="true" android:focusable="true" android:background="?android:attr/selectableItemBackground" /> android:tint="?android:attr/textColorPrimaryInverse"/> </LinearLayout> Loading @@ -69,7 +67,7 @@ android:id="@+id/detail_group" android:layout_width="match_parent" android:layout_height="0dp" android:paddingStart="56dp" android:paddingStart="72dp" android:visibility="gone" android:orientation="vertical"> Loading src/com/android/settings/dashboard/conditional/ConditionAdapterUtils.java +4 −3 Original line number Diff line number Diff line Loading @@ -68,12 +68,13 @@ public class ConditionAdapterUtils { card.setOnClickListener(onClickListener); view.icon.setImageIcon(condition.getIcon()); view.title.setText(condition.getTitle()); ImageView expand = (ImageView) view.itemView.findViewById(R.id.expand_indicator); expand.setTag(condition); final View collapsedGroup = view.itemView.findViewById(R.id.collapsed_group); collapsedGroup.setTag(condition); final ImageView expand = (ImageView) view.itemView.findViewById(R.id.expand_indicator); expand.setImageResource(isExpanded ? R.drawable.ic_expand_less : R.drawable.ic_expand_more); expand.setContentDescription(expand.getContext().getString(isExpanded ? R.string.condition_expand_hide : R.string.condition_expand_show)); expand.setOnClickListener(onExpandListener); collapsedGroup.setOnClickListener(onExpandListener); View detailGroup = view.itemView.findViewById(R.id.detail_group); CharSequence[] actions = condition.getActions(); Loading Loading
res/layout/condition_card.xml +4 −6 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingStart="16dp" android:background="?android:attr/colorAccent" android:elevation="2dp" android:clickable="true" Loading @@ -35,6 +34,7 @@ android:id="@+id/collapsed_group" android:layout_width="match_parent" android:layout_height="56dp" android:background="?android:attr/selectableItemBackground" android:orientation="horizontal" android:gravity="center"> Loading @@ -42,6 +42,7 @@ android:id="@android:id/icon" android:layout_width="24dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="32dp" android:tint="?android:attr/textColorPrimaryInverse" /> Loading @@ -58,10 +59,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:padding="16dp" android:tint="?android:attr/textColorPrimaryInverse" android:clickable="true" android:focusable="true" android:background="?android:attr/selectableItemBackground" /> android:tint="?android:attr/textColorPrimaryInverse"/> </LinearLayout> Loading @@ -69,7 +67,7 @@ android:id="@+id/detail_group" android:layout_width="match_parent" android:layout_height="0dp" android:paddingStart="56dp" android:paddingStart="72dp" android:visibility="gone" android:orientation="vertical"> Loading
src/com/android/settings/dashboard/conditional/ConditionAdapterUtils.java +4 −3 Original line number Diff line number Diff line Loading @@ -68,12 +68,13 @@ public class ConditionAdapterUtils { card.setOnClickListener(onClickListener); view.icon.setImageIcon(condition.getIcon()); view.title.setText(condition.getTitle()); ImageView expand = (ImageView) view.itemView.findViewById(R.id.expand_indicator); expand.setTag(condition); final View collapsedGroup = view.itemView.findViewById(R.id.collapsed_group); collapsedGroup.setTag(condition); final ImageView expand = (ImageView) view.itemView.findViewById(R.id.expand_indicator); expand.setImageResource(isExpanded ? R.drawable.ic_expand_less : R.drawable.ic_expand_more); expand.setContentDescription(expand.getContext().getString(isExpanded ? R.string.condition_expand_hide : R.string.condition_expand_show)); expand.setOnClickListener(onExpandListener); collapsedGroup.setOnClickListener(onExpandListener); View detailGroup = view.itemView.findViewById(R.id.detail_group); CharSequence[] actions = condition.getActions(); Loading