mirror of https://github.com/M66B/FairEmail.git
Open message ripple
This commit is contained in:
parent
a69c96adbe
commit
87cd65d7b4
|
@ -196,6 +196,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
private TextView tvPreview;
|
||||
private TextView tvError;
|
||||
private ContentLoadingProgressBar pbLoading;
|
||||
private View vwRipple;
|
||||
|
||||
private ImageView ivExpanderAddress;
|
||||
private TextView tvFromEx;
|
||||
|
@ -272,6 +273,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ivThread = itemView.findViewById(R.id.ivThread);
|
||||
tvError = itemView.findViewById(R.id.tvError);
|
||||
pbLoading = itemView.findViewById(R.id.pbLoading);
|
||||
vwRipple = itemView.findViewById(R.id.vwRipple);
|
||||
|
||||
ivExpanderAddress = itemView.findViewById(R.id.ivExpanderAddress);
|
||||
tvFromEx = itemView.findViewById(R.id.tvFromEx);
|
||||
|
@ -1030,6 +1032,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
else
|
||||
onToggleMessage(message);
|
||||
} else {
|
||||
vwRipple.setPressed(true);
|
||||
vwRipple.setPressed(false);
|
||||
|
||||
if (EntityFolder.DRAFTS.equals(message.folderType) && message.visible == 1)
|
||||
context.startActivity(
|
||||
new Intent(context, ActivityCompose.class)
|
||||
|
|
|
@ -301,10 +301,20 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminate="true"
|
||||
app:layout_constraintBottom_toBottomOf="@id/paddingBottom"
|
||||
app:layout_constraintBottom_toTopOf="@+id/vSeparatorAddress"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toBottomOf="@id/vSeparatorDay" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vwRipple"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
app:layout_constraintBottom_toTopOf="@+id/vSeparatorAddress"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/vSeparatorDay" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vSeparatorAddress"
|
||||
|
|
|
@ -294,10 +294,20 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminate="true"
|
||||
app:layout_constraintBottom_toBottomOf="@id/paddingBottom"
|
||||
app:layout_constraintBottom_toTopOf="@+id/vSeparatorAddress"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toBottomOf="@id/vSeparatorDay" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vwRipple"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
app:layout_constraintBottom_toTopOf="@+id/vSeparatorAddress"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/vSeparatorDay" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vSeparatorAddress"
|
||||
|
|
Loading…
Reference in New Issue