From 5302f210b49245b332da1cfd5ea9227820be6461 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 11 Oct 2022 17:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/ActivityExtensions.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/utils/ActivityExtensions.kt b/app/src/main/java/io/legado/app/utils/ActivityExtensions.kt index 98201af12..22d4101c3 100644 --- a/app/src/main/java/io/legado/app/utils/ActivityExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/ActivityExtensions.kt @@ -1,5 +1,6 @@ package io.legado.app.utils +import android.annotation.SuppressLint import android.app.Activity import android.graphics.Color import android.os.Build @@ -172,6 +173,7 @@ val Activity.isNavigationBarExist: Boolean * 返回NavigationBar高度 */ val Activity.navigationBarHeight: Int + @SuppressLint("InternalInsetResource", "DiscouragedApi") get() { if (isNavigationBarExist) { val resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android")