diff options
author | Andrew Dolgov <[email protected]> | 2013-04-16 14:55:37 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-16 14:55:37 +0400 |
commit | fbf7f20ae32bb13cf700d302ba84fd2c5d537205 (patch) | |
tree | 603805d2f55be36ec8d28b2302f7b50894fa4aec /src | |
parent | 7b3d3a7d4769a8ded0e60899d7248aa9b2b0384e (diff) |
fix nosuchmethoderror when viewing captions on API < 16
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttrss/OnlineActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
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);
|