main menu reorder

This commit is contained in:
Sergey Solovyev 2013-01-20 15:09:37 +04:00
parent 1fd8146b7e
commit b6778f7615

View File

@ -29,17 +29,10 @@ enum CalculatorMenu implements LabeledMenuItem<MenuItem> {
} }
}, },
about(R.string.c_about) { plotter(R.string.cpp_plotter) {
@Override @Override
public void onClick(@NotNull MenuItem data, @NotNull Context context) { public void onClick(@NotNull MenuItem data, @NotNull Context context) {
CalculatorActivityLauncher.showAbout(context); Locator.getInstance().getPlotter().plot();
}
},
help(R.string.c_help) {
@Override
public void onClick(@NotNull MenuItem data, @NotNull Context context) {
CalculatorActivityLauncher.showHelp(context);
} }
}, },
@ -50,10 +43,17 @@ enum CalculatorMenu implements LabeledMenuItem<MenuItem> {
} }
}, },
plotter(R.string.cpp_plotter) { help(R.string.c_help) {
@Override @Override
public void onClick(@NotNull MenuItem data, @NotNull Context context) { public void onClick(@NotNull MenuItem data, @NotNull Context context) {
Locator.getInstance().getPlotter().plot(); CalculatorActivityLauncher.showHelp(context);
}
},
about(R.string.c_about) {
@Override
public void onClick(@NotNull MenuItem data, @NotNull Context context) {
CalculatorActivityLauncher.showAbout(context);
} }
}, },