\n" +
- "\t\t\t\n" +
- "\t\t\t\t
\n" +
- "\t\t\t\t\t
\n" +
- "\t\t\t\t\t\t
\n" +
- "\t\t\t\t\t\t
";
-
- String htmlFooter = "\n" +
- "\t\t\t\t\t
\n" +
- "\t\t\t\t
\n" +
- "\t\t\t\n" +
- "\t\t
\n" +
- "";
-
-
- webViewContent = (WebView) findViewById(R.id.webViewContent);
- webViewContent.loadDataWithBaseURL("file:///android_asset/", htmlHeader + htmlContent + htmlFooter, "text/html", "utf-8", null);
-
- Button btnMarkRead = (Button) findViewById(R.id.btnMarkRead);
- btnMarkRead.setOnClickListener(new OnClickListener() {
-
- @Override
- public void onClick(View v) {
- markAsReadAndClose();
- }
- });
- }
+ settings = App.getInstance().getSettings();
+
+ String cssName;
+ boolean highContrast = false;
+ switch(Themes.getCurrentTheme()) {
+ case LightContrast:
+ highContrast = true;
+ case Light:
+ default:
+ cssName = "main";
+ break;
+
+ case DarkContrast:
+ highContrast = true;
+ case Dark:
+ cssName = "dark";
+ break;
+ }
+
+ fontSize = settings.getInt(Settings.FONT_SIZE, fontSize);
+ boolean serifFont = settings.getBoolean(Settings.SERIF_FONT, false);
+
+ if(fontSize < 5) fontSize = 100; // TODO: remove: temp hack for compatibility
+
+ List