mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Small behavior improvement
This commit is contained in:
parent
b9f446f0fa
commit
5898ad7c13
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,7 @@ public class FragmentContacts extends FragmentBase {
|
|||
@Override
|
||||
@Nullable
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||
setSubtitle(R.string.menu_contacts);
|
||||
setSubtitle(junk ? R.string.title_block_sender : R.string.menu_contacts);
|
||||
setHasOptionsMenu(true);
|
||||
|
||||
View view = inflater.inflate(R.layout.fragment_contacts, container, false);
|
||||
|
@ -226,6 +226,7 @@ public class FragmentContacts extends FragmentBase {
|
|||
|
||||
private void onMenuJunk(boolean junk) {
|
||||
this.junk = junk;
|
||||
setSubtitle(junk ? R.string.title_block_sender : R.string.menu_contacts);
|
||||
adapter.filter(junk
|
||||
? Arrays.asList(EntityContact.TYPE_JUNK, EntityContact.TYPE_NO_JUNK)
|
||||
: new ArrayList<>());
|
||||
|
|
Loading…
Reference in a new issue