Browse Source

Hide options menu in folders list

main
M66B 6 years ago
parent
commit
be8fb15ec0
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      app/src/main/java/eu/faircode/email/FragmentFolders.java

+ 7
- 0
app/src/main/java/eu/faircode/email/FragmentFolders.java View File

@ -28,6 +28,7 @@ import android.support.design.widget.FloatingActionButton;
import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.ProgressBar; import android.widget.ProgressBar;
@ -47,6 +48,7 @@ public class FragmentFolders extends FragmentEx {
@Nullable @Nullable
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
setSubtitle(R.string.title_list_folders); setSubtitle(R.string.title_list_folders);
setHasOptionsMenu(true);
View view = inflater.inflate(R.layout.fragment_folders, container, false); View view = inflater.inflate(R.layout.fragment_folders, container, false);
@ -92,4 +94,9 @@ public class FragmentFolders extends FragmentEx {
return view; return view;
} }
@Override
public void onPrepareOptionsMenu(Menu menu) {
menu.clear();
}
} }

Loading…
Cancel
Save