mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Merge pull request #269 from kiwix/video_night-mode
Fix night-mode for videos #266
This commit is contained in:
commit
09f9ab8d45
@ -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")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user