Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 343137e3 authored by Georg Veichtlbauer's avatar Georg Veichtlbauer
Browse files

ExactCalculator: Don't change the status bar color on error

Change-Id: I1509b9760f9f9d6fb227d50fd50fe877fefb52e6
parent 3daf951a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -507,14 +507,11 @@ public class Calculator extends AppCompatActivity
                        ContextCompat.getColor(this, R.color.calculator_error_color);
                mFormulaText.setTextColor(errorColor);
                mResultText.setTextColor(errorColor);
                getWindow().setStatusBarColor(errorColor);
            } else if (mCurrentState != CalculatorState.RESULT) {
                mFormulaText.setTextColor(
                        ContextCompat.getColor(this, R.color.display_formula_text_color));
                mResultText.setTextColor(
                        ContextCompat.getColor(this, R.color.display_result_text_color));
                getWindow().setStatusBarColor(
                        ContextCompat.getColor(this, R.color.calculator_statusbar_color));
            }

            invalidateOptionsMenu();