Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 1a71ae1

Browse files
committed
Add mmm.getNavigationBarHeight API for future transparent nav bar.
1 parent 4cd9d9d commit 1a71ae1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyWebAPI.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,12 @@ public int getMagiskVersionCode() {
220220
public int getAndroidVersionCode() {
221221
return Build.VERSION.SDK_INT;
222222
}
223+
224+
/**
225+
* Return current navigation bar height or 0 if not visible
226+
*/
227+
@JavascriptInterface
228+
public int getNavigationBarHeight() {
229+
return this.activity.getNavigationBarHeight();
230+
}
223231
}

0 commit comments

Comments
 (0)