From efb5f709405ba7b2f96244218b579d674a16dcf2 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 16 Feb 2021 22:16:55 +0200 Subject: [PATCH] method rearrangement --- .../ui/templates/TemplateDetailsFragment.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsFragment.java index 50088be3..5ae4c3c9 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsFragment.java @@ -49,11 +49,6 @@ public class TemplateDetailsFragment extends QRScanCapableFragment { 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(); @@ -64,6 +59,11 @@ public class TemplateDetailsFragment extends QRScanCapableFragment { 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(); -- 2.39.5