From 507f8fdd6fbf520a8cc7b1833e818a17a67bff08 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 26 Oct 2020 12:17:11 +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/base/BaseActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/base/BaseActivity.kt b/app/src/main/java/io/legado/app/base/BaseActivity.kt index 7c5953584..b1057c9c1 100644 --- a/app/src/main/java/io/legado/app/base/BaseActivity.kt +++ b/app/src/main/java/io/legado/app/base/BaseActivity.kt @@ -2,6 +2,7 @@ package io.legado.app.base import android.content.Context import android.content.res.Configuration +import android.os.Build import android.os.Bundle import android.util.AttributeSet import android.view.Menu @@ -34,7 +35,7 @@ abstract class BaseActivity( val isInMultiWindow: Boolean get() { - return if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) { + return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { isInMultiWindowMode } else { false @@ -63,7 +64,7 @@ abstract class BaseActivity( setupSystemBar() super.onCreate(savedInstanceState) setContentView(layoutID) - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { findViewById(R.id.title_bar) ?.onMultiWindowModeChanged(isInMultiWindowMode, fullScreen) }