From 654f4b880937c54913b71c6b7a2624ce14110e55 Mon Sep 17 00:00:00 2001 From: serso Date: Sun, 31 Jan 2016 10:26:26 +0100 Subject: [PATCH] Avoid Operators: prefix for derivatives --- .../android/calculator/functions/FunctionsActivity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/solovyev/android/calculator/functions/FunctionsActivity.java b/app/src/main/java/org/solovyev/android/calculator/functions/FunctionsActivity.java index 71e335ac..9e6bfe02 100644 --- a/app/src/main/java/org/solovyev/android/calculator/functions/FunctionsActivity.java +++ b/app/src/main/java/org/solovyev/android/calculator/functions/FunctionsActivity.java @@ -47,7 +47,13 @@ public class FunctionsActivity extends BaseActivity { } for (OperatorCategory category : OperatorCategory.values()) { - addTab(category, CalculatorFragmentType.operators, getString(R.string.c_operators) + ": " + getString(category.title())); + final String title; + if (category == OperatorCategory.common || category == OperatorCategory.other) { + title = getString(R.string.c_operators) + ": " + getString(category.title()); + } else { + title = getString(category.title()); + } + addTab(category, CalculatorFragmentType.operators, title); } if (savedInstanceState == null) {