From a9c527998c05d020c47e5d55a7126d4f9ab3362b Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Tue, 18 Sep 2012 15:08:50 -0700 Subject: [PATCH] Don't display errors in ideas tab --- .../src/com/todoroo/astrid/ui/WebServicesView.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/ui/WebServicesView.java b/astrid/src/com/todoroo/astrid/ui/WebServicesView.java index 56a03ca61..09647e62d 100644 --- a/astrid/src/com/todoroo/astrid/ui/WebServicesView.java +++ b/astrid/src/com/todoroo/astrid/ui/WebServicesView.java @@ -591,12 +591,14 @@ public class WebServicesView extends LinearLayout { public void run() { body.removeAllViews(); - TextView textView = new TextView(getContext()); - textView.setTextAppearance(getContext(), R.style.TextAppearance_Medium); - textView.setText(exception.getClass().getSimpleName() + ": " + - exception.getLocalizedMessage()); - textView.setLines(2); - body.addView(textView); + if (Constants.DEBUG) { + TextView textView = new TextView(getContext()); + textView.setTextAppearance(getContext(), R.style.TextAppearance_Medium); + textView.setText(exception.getClass().getSimpleName() + ": " + + exception.getLocalizedMessage()); + textView.setLines(2); + body.addView(textView); + } } }); }