private InteractionListener interactionListener;
public TemplateDetailsFragment() {
}
- @Override
- public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {
- super.onCreateOptionsMenu(menu, inflater);
- inflater.inflate(R.menu.template_details_menu, menu);
- }
public static TemplateDetailsFragment newInstance(int columnCount, int patternId) {
final TemplateDetailsFragment fragment = new TemplateDetailsFragment();
Bundle args = new Bundle();
return fragment;
}
@Override
+ public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {
+ super.onCreateOptionsMenu(menu, inflater);
+ inflater.inflate(R.menu.template_details_menu, menu);
+ }
+ @Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
if (item.getItemId() == R.id.delete_template) {
signalDeleteTemplateInteraction();