Added quick search button for hidden messages

pull/215/head
M66B 8 months ago
parent 4bb1284c52
commit 4a21502651

@ -101,6 +101,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
final ImageButton ibInfo = dview.findViewById(R.id.ibInfo);
final ImageButton ibFlagged = dview.findViewById(R.id.ibFlagged);
final ImageButton ibUnseen = dview.findViewById(R.id.ibUnseen);
final ImageButton ibHidden = dview.findViewById(R.id.ibHidden);
final ImageButton ibInvite = dview.findViewById(R.id.ibInvite);
final ImageButton ibAttachment = dview.findViewById(R.id.ibAttachment);
final ImageButton ibNotes = dview.findViewById(R.id.ibNotes);
@ -585,6 +586,8 @@ public class FragmentDialogSearch extends FragmentDialogBase {
criteria.with_flagged = true;
else if (id == R.id.ibUnseen)
criteria.with_unseen = true;
else if (id == R.id.ibHidden)
criteria.with_hidden = true;
else if (id == R.id.ibInvite) {
criteria.with_attachments = true;
criteria.with_types = new String[]{"text/calendar"};
@ -606,6 +609,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
ibNotes.setOnClickListener(onClick);
ibAttachment.setOnClickListener(onClick);
ibInvite.setOnClickListener(onClick);
ibHidden.setOnClickListener(onClick);
ibUnseen.setOnClickListener(onClick);
ibFlagged.setOnClickListener(onClick);

@ -43,7 +43,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:constraint_referenced_ids="ibFlagged,ibUnseen,ibInvite,ibAttachment,ibNotes"
app:constraint_referenced_ids="ibFlagged,ibUnseen,ibHidden,ibInvite,ibAttachment,ibNotes"
app:flow_horizontalBias="0"
app:flow_horizontalGap="12dp"
app:flow_horizontalStyle="packed"
@ -76,6 +76,18 @@
app:srcCompat="@drawable/twotone_mail_24"
tools:ignore="MissingConstraints" />
<ImageButton
android:id="@+id/ibHidden"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_search_flag_hidden"
android:padding="6dp"
android:scaleType="fitCenter"
android:tooltipText="@string/title_search_flag_hidden"
app:srcCompat="@drawable/twotone_visibility_off_24"
tools:ignore="MissingConstraints" />
<ImageButton
android:id="@+id/ibInvite"
android:layout_width="36dp"

Loading…
Cancel
Save