From d2782783e5118b5b69c258b3cba8b95be42124ae Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 9 Jul 2023 21:34:14 +0200 Subject: [PATCH] Revert "Experiment" This reverts commit 5360cfcd2b653ee729c8bc520fa5adbe03340b52. --- .../eu/faircode/email/FragmentMessages.java | 13 ------------- app/src/main/res/layout/fragment_messages.xml | 17 +---------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index d318ee5265..d638cbf290 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -265,7 +265,6 @@ public class FragmentMessages extends FragmentBase private ImageButton ibUp; private ImageButton ibOutbox; private TextView tvOutboxCount; - private ImageButton ibSearch; private ImageButton ibSeen; private ImageButton ibUnflagged; private ImageButton ibSnoozed; @@ -576,7 +575,6 @@ public class FragmentMessages extends FragmentBase ibOutbox = view.findViewById(R.id.ibOutbox); tvOutboxCount = view.findViewById(R.id.tvOutboxCount); tvDebug = view.findViewById(R.id.tvDebug); - ibSearch = view.findViewById(R.id.ibSearch); ibSeen = view.findViewById(R.id.ibSeen); ibUnflagged = view.findViewById(R.id.ibUnflagged); ibSnoozed = view.findViewById(R.id.ibSnoozed); @@ -1277,13 +1275,6 @@ public class FragmentMessages extends FragmentBase } }); - ibSearch.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - onMenuSearch(); - } - }); - ibSeen.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { @@ -1883,7 +1874,6 @@ public class FragmentMessages extends FragmentBase tvDebug.setVisibility( BuildConfig.DEBUG && viewType != AdapterMessage.ViewType.THREAD ? View.VISIBLE : View.GONE); - ibSearch.setVisibility(View.GONE); ibSeen.setVisibility(View.GONE); ibUnflagged.setVisibility(View.GONE); ibSnoozed.setVisibility(View.GONE); @@ -5766,8 +5756,6 @@ public class FragmentMessages extends FragmentBase menu.findItem(R.id.menu_edit_properties).setVisible(viewType == AdapterMessage.ViewType.FOLDER && !outbox); // In some cases onPrepareOptionsMenu can be called before onCreateView - if (ibSearch == null) - ibSearch = view.findViewById(R.id.ibSearch); if (ibSeen == null) ibSeen = view.findViewById(R.id.ibSeen); if (ibUnflagged == null) @@ -5779,7 +5767,6 @@ public class FragmentMessages extends FragmentBase ibUnflagged.setImageResource(filter_unflagged ? R.drawable.twotone_star_border_24 : R.drawable.baseline_star_24); ibSnoozed.setImageResource(filter_snoozed ? R.drawable.twotone_visibility_off_24 : R.drawable.twotone_visibility_24); - ibSearch.setVisibility(quick_filter && folder && BuildConfig.DEBUG ? View.VISIBLE : View.GONE); ibSeen.setVisibility(quick_filter && folder ? View.VISIBLE : View.GONE); ibUnflagged.setVisibility(quick_filter && folder ? View.VISIBLE : View.GONE); ibSnoozed.setVisibility(quick_filter && folder && !drafts ? View.VISIBLE : View.GONE); diff --git a/app/src/main/res/layout/fragment_messages.xml b/app/src/main/res/layout/fragment_messages.xml index 0e4a11b696..a2b97ce4c7 100644 --- a/app/src/main/res/layout/fragment_messages.xml +++ b/app/src/main/res/layout/fragment_messages.xml @@ -398,21 +398,6 @@ app:layout_constraintBottom_toTopOf="@+id/etSearch" app:layout_constraintStart_toEndOf="@+id/tvOutboxCount" /> - -