Merge pull request #269 from kiwix/video_night-mode

Fix night-mode for videos #266
This commit is contained in:
Kelson 2017-10-04 09:39:33 +02:00 committed by GitHub
commit 09f9ab8d45

View File

@ -454,7 +454,7 @@ public class ZimContentProvider extends ContentProvider {
JNIKiwixInt size = new JNIKiwixInt();
byte[] data = jniKiwix.getContent(articleZimUrl, title, mime, size);
if (mime.value != null && mime.value.equals("text/css") && KiwixMobileActivity.nightMode) {
out.write(("img { \n" +
out.write(("img, video { \n" +
" -webkit-filter: invert(1); \n" +
" filter: invert(1); \n" +
"} \n").getBytes(Charset.forName("UTF-8")));