From 350b4ef14c9e88afc7eb0962bf092fa423302d65 Mon Sep 17 00:00:00 2001 From: infinyte7 Date: Mon, 29 Jun 2020 02:29:54 +0800 Subject: [PATCH] Night mode status in card --- .../main/java/com/ichi2/anki/AbstractFlashcardViewer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java b/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java index 787524c3c603..289b44110ca6 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java @@ -3569,5 +3569,10 @@ public long ankiGetCardDue() { public boolean ankiIsInFullscreen() { return isFullscreen(); } + + @JavascriptInterface + public boolean ankiIsInNightMode() { + return isInNightMode(); + } } }