From b6778f7615fd4e60b376eaf1cec0b1f5e6fa2938 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Sun, 20 Jan 2013 15:09:37 +0400 Subject: [PATCH] main menu reorder --- .../android/calculator/CalculatorMenu.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/android-app/src/main/java/org/solovyev/android/calculator/CalculatorMenu.java b/android-app/src/main/java/org/solovyev/android/calculator/CalculatorMenu.java index 3b0d3a85..354f4a3d 100644 --- a/android-app/src/main/java/org/solovyev/android/calculator/CalculatorMenu.java +++ b/android-app/src/main/java/org/solovyev/android/calculator/CalculatorMenu.java @@ -29,17 +29,10 @@ enum CalculatorMenu implements LabeledMenuItem { } }, - about(R.string.c_about) { + plotter(R.string.cpp_plotter) { @Override public void onClick(@NotNull MenuItem data, @NotNull Context context) { - CalculatorActivityLauncher.showAbout(context); - } - }, - - help(R.string.c_help) { - @Override - public void onClick(@NotNull MenuItem data, @NotNull Context context) { - CalculatorActivityLauncher.showHelp(context); + Locator.getInstance().getPlotter().plot(); } }, @@ -50,12 +43,19 @@ enum CalculatorMenu implements LabeledMenuItem { } }, - plotter(R.string.cpp_plotter) { - @Override - public void onClick(@NotNull MenuItem data, @NotNull Context context) { - Locator.getInstance().getPlotter().plot(); - } - }, + help(R.string.c_help) { + @Override + public void onClick(@NotNull MenuItem data, @NotNull Context context) { + CalculatorActivityLauncher.showHelp(context); + } + }, + + about(R.string.c_about) { + @Override + public void onClick(@NotNull MenuItem data, @NotNull Context context) { + CalculatorActivityLauncher.showAbout(context); + } + }, exit(R.string.c_exit) { @Override