From fbf7f20ae32bb13cf700d302ba84fd2c5d537205 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Apr 2013 14:55:37 +0400 Subject: [PATCH] fix nosuchmethoderror when viewing captions on API < 16 --- src/org/fox/ttrss/OnlineActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index 66e58301..60cf2a59 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -581,7 +581,11 @@ public class OnlineActivity extends CommonActivity { dia.setTitle(es.get(0).attr("title")); } TextView titleText = new TextView(this); - titleText.setPaddingRelative(24, 24, 24, 24); + + if (android.os.Build.VERSION.SDK_INT >= 16) { + titleText.setPaddingRelative(24, 24, 24, 24); + } + titleText.setTextSize(16); titleText.setText(es.get(0).attr("title")); dia.setContentView(titleText);