diff --git a/res/values/strings.xml b/res/values/strings.xml
index 5c087d69..ff316f9b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -28,4 +28,7 @@
redo
clear
paste
+
+ Color expressions
+ Precision of result
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index eef77cd2..351ab219 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -6,16 +6,16 @@
-
+ range:boundaries="0;45"/>-->
diff --git a/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java b/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
index bfd5d515..5ff6204a 100644
--- a/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
+++ b/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java
@@ -248,5 +248,7 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster, Sh
final Boolean colorExpressionsInBracketsDefault = new BooleanMapper().parseValue(this.getString(R.string.p_calc_color_display));
assert colorExpressionsInBracketsDefault != null;
this.calculatorView.getEditor().setHighlightExpressionInBrackets(sharedPreferences.getBoolean(this.getString(R.string.p_calc_color_display_key), colorExpressionsInBracketsDefault));
+
+ this.calculatorView.evaluate();
}
}
\ No newline at end of file
diff --git a/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java b/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java
index f7ebc3cf..e9adc999 100644
--- a/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java
+++ b/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java
@@ -100,9 +100,9 @@ public abstract class AbstractDialogPreference extends DialogPreference {
final LinearLayout.LayoutParams params = getParams();
if (params != null) {
- result.addView(v);
- } else {
result.addView(v, params);
+ } else {
+ result.addView(v);
}
return result;