diff --git a/calculatorpp/res/values-ru/text_strings.xml b/calculatorpp/res/values-ru/text_strings.xml
index 22bc4c9a..d6db9be1 100644
--- a/calculatorpp/res/values-ru/text_strings.xml
+++ b/calculatorpp/res/values-ru/text_strings.xml
@@ -226,4 +226,11 @@
Устанавливает цвет вещественной части графика
Цвет мнимой части графика
Устанавливает цвет мнимой части графика
+
+ Белый
+ Серый
+ Красный
+ Синий
+ Зелёный
+
\ No newline at end of file
diff --git a/calculatorpp/res/values/arrays.xml b/calculatorpp/res/values/arrays.xml
index b1f687af..d808cac0 100644
--- a/calculatorpp/res/values/arrays.xml
+++ b/calculatorpp/res/values/arrays.xml
@@ -1,103 +1,103 @@
-
-
-
-
- - @string/p_default_theme
- - @string/p_violet_theme
- - @string/p_light_blue_theme
- - @string/p_metro_blue_theme
- - @string/p_metro_green_theme
- - @string/p_metro_purple_theme
-
-
- - default_theme
- - violet_theme
- - light_blue_theme
- - metro_blue_theme
- - metro_green_theme
- - metro_purple_theme
-
-
-
- - @string/p_grouping_separator_no
- - @string/p_grouping_separator_apostrophe
- - @string/p_grouping_separator_space
-
-
- - ""
- - \'
- - " "
-
-
-
- - "*"
- - "×"
- - "∙"
-
-
-
- - @string/p_layout_calculator
- - @string/p_layout_simple
-
-
- - main_calculator
- - simple
-
-
-
- - @string/p_calc_haptic_feedback_strength_short
- - @string/p_calc_haptic_feedback_strength_middle
- - @string/p_calc_haptic_feedback_strength_long
-
-
- - 30
- - 60
- - 100
-
-
-
- - @string/p_deg
- - @string/p_rad
- - @string/p_grad
- - @string/p_turns
-
-
- - deg
- - rad
- - grad
- - turns
-
-
-
- - @string/p_dec
- - @string/p_hex
- - @string/p_oct
- - @string/p_bin
-
-
- - dec
- - hex
- - oct
- - bin
-
-
-
- - White
- - Grey
- - Red
- - Blue
- - Green
-
-
- - white
- - grey
- - red
- - blue
- - green
-
-
+
+
+
+
+ - @string/p_default_theme
+ - @string/p_violet_theme
+ - @string/p_light_blue_theme
+ - @string/p_metro_blue_theme
+ - @string/p_metro_green_theme
+ - @string/p_metro_purple_theme
+
+
+ - default_theme
+ - violet_theme
+ - light_blue_theme
+ - metro_blue_theme
+ - metro_green_theme
+ - metro_purple_theme
+
+
+
+ - @string/p_grouping_separator_no
+ - @string/p_grouping_separator_apostrophe
+ - @string/p_grouping_separator_space
+
+
+ - ""
+ - \'
+ - " "
+
+
+
+ - "*"
+ - "×"
+ - "∙"
+
+
+
+ - @string/p_layout_calculator
+ - @string/p_layout_simple
+
+
+ - main_calculator
+ - simple
+
+
+
+ - @string/p_calc_haptic_feedback_strength_short
+ - @string/p_calc_haptic_feedback_strength_middle
+ - @string/p_calc_haptic_feedback_strength_long
+
+
+ - 30
+ - 60
+ - 100
+
+
+
+ - @string/p_deg
+ - @string/p_rad
+ - @string/p_grad
+ - @string/p_turns
+
+
+ - deg
+ - rad
+ - grad
+ - turns
+
+
+
+ - @string/p_dec
+ - @string/p_hex
+ - @string/p_oct
+ - @string/p_bin
+
+
+ - dec
+ - hex
+ - oct
+ - bin
+
+
+
+ - @string/p_white_line_color
+ - @string/p_grey_line_color
+ - @string/p_red_line_color
+ - @string/p_blue_line_color
+ - @string/p_green_line_color
+
+
+ - white
+ - grey
+ - red
+ - blue
+ - green
+
+
\ No newline at end of file
diff --git a/calculatorpp/res/values/text_strings.xml b/calculatorpp/res/values/text_strings.xml
index d2e91965..5e1d87ed 100644
--- a/calculatorpp/res/values/text_strings.xml
+++ b/calculatorpp/res/values/text_strings.xml
@@ -226,4 +226,11 @@
Sets color of real part functions graph
Color of imaginary part of functions graph
Sets color of imaginary part functions graph
+
+ White
+ Grey
+ Red
+ Blue
+ Green
+
\ No newline at end of file
diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorFragmentHelperImpl.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorFragmentHelperImpl.java
index 476a9a2b..da696eea 100644
--- a/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorFragmentHelperImpl.java
+++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/CalculatorFragmentHelperImpl.java
@@ -91,10 +91,14 @@ public class CalculatorFragmentHelperImpl extends AbstractCalculatorHelper imple
final ViewGroup adParentView = (ViewGroup) root.findViewById(R.id.ad_parent_view);
final ViewGroup mainFragmentLayout = (ViewGroup) root.findViewById(R.id.main_fragment_layout);
- if (adParentView != null) {
- adView = AdsController.getInstance().inflateAd(fragment.getActivity(), adParentView, R.id.ad_parent_view);
- } else if ( mainFragmentLayout != null ) {
- adView = AdsController.getInstance().inflateAd(fragment.getActivity(), mainFragmentLayout, R.id.main_fragment_layout);
+ if (fragment instanceof CalculatorDisplayFragment || fragment instanceof CalculatorEditorFragment || fragment instanceof CalculatorKeyboardFragment) {
+ // no ads in those fragments
+ } else {
+ if (adParentView != null) {
+ adView = AdsController.getInstance().inflateAd(fragment.getActivity(), adParentView, R.id.ad_parent_view);
+ } else if ( mainFragmentLayout != null ) {
+ adView = AdsController.getInstance().inflateAd(fragment.getActivity(), mainFragmentLayout, R.id.main_fragment_layout);
+ }
}
processButtons(fragment.getActivity(), root);