Added open source licenses dialog.

This commit is contained in:
Karim Abou Zeid 2015-12-28 01:06:09 +01:00
commit afd72a7129
12 changed files with 191 additions and 14 deletions

View file

@ -76,8 +76,8 @@ public class ChangelogDialog extends LeakDetectDialogFragment {
in.close();
// Inject color values for WebView body background and links
final String backgroundColor = ThemeSingleton.get().darkTheme ? "444444" : "fff";
final String contentColor = ThemeSingleton.get().darkTheme ? "fff" : "000";
final String backgroundColor = ThemeSingleton.get().darkTheme ? "424242" : "ffffff";
final String contentColor = ThemeSingleton.get().darkTheme ? "ffffff" : "000000";
webView.loadData(buf.toString()
.replace("{style-placeholder}",
String.format("body { background-color: #%s; color: #%s; }", backgroundColor, contentColor))