From d9210306ed4b9b61b833339f2012f735e83b0673 Mon Sep 17 00:00:00 2001 From: infinyte7 Date: Sat, 25 Jul 2020 22:39:02 +0800 Subject: [PATCH] Topbar shown status --- .../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 adc4ae16ec80..3a6e3830b9e1 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java @@ -3583,6 +3583,11 @@ public boolean ankiIsInFullscreen() { return isFullscreen(); } + @JavascriptInterface + public boolean ankiIsTopbarShown() { + return mPrefShowTopbar; + } + @JavascriptInterface public boolean ankiIsInNightMode() { return isInNightMode();