]> git.ktnx.net Git - mobile-ledger.git/commitdiff
method rearrangement
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Feb 2021 20:16:55 +0000 (22:16 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:19:43 +0000 (07:19 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsFragment.java

index 50088be306dd7bdd3f83c779d1e1d71879f29786..5ae4c3c983a242f8dec4d007cd2007cb072dde4f 100644 (file)
@@ -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();