Updates selected assets

This commit is contained in:
Moez Bhatti
2015-10-30 20:28:51 -04:00
parent bafd846d6e
commit 4864c40595
5 changed files with 22 additions and 2 deletions
@@ -91,11 +91,13 @@ public class ConversationListAdapter extends RecyclerCursorAdapter<ConversationL
if (isInMultiSelectMode()) {
holder.mSelected.setVisibility(View.VISIBLE);
if (isSelected(conversation.getThreadId())) {
holder.mSelected.setImageResource(R.drawable.btn_radio_on);
holder.mSelected.setImageResource(R.drawable.ic_selected);
holder.mSelected.setColorFilter(ThemeManager.getColor());
holder.mSelected.setAlpha(1f);
} else {
holder.mSelected.setImageResource(R.drawable.btn_radio_off);
holder.mSelected.setImageResource(R.drawable.ic_unselected);
holder.mSelected.setColorFilter(ThemeManager.getTextOnBackgroundSecondary());
holder.mSelected.setAlpha(0.5f);
}
} else {
holder.mSelected.setVisibility(View.GONE);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zm-2,15l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z" />
</vector>
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10c5.5,0,10-4.5,10-10S17.5,2,12,2z M12,20c-4.4,0-8-3.6-8-8s3.6-8,8-8c4.4,0,8,3.6,8,8S16.4,20,12,20z" />
</vector>