Don't display errors in ideas tab

pull/14/head
Sam Bosley 12 years ago
parent 46fe19c78f
commit a9c527998c

@ -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);
}
}
});
}

Loading…
Cancel
Save