소스 검색

Add @SuppressLint("NewApi")

cooperku_kdanmobile 4 년 전
부모
커밋
73ba7bcb64
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/main/java/com/kdanmobile/reader/ReaderActivity.kt

+ 3 - 0
src/main/java/com/kdanmobile/reader/ReaderActivity.kt

@@ -630,6 +630,7 @@ abstract class ReaderActivity :
 //        return Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT
     }
 
+    @SuppressLint("NewApi")
     private fun showAllToolbars() {
         if (isBelowKitkat()) {
             val duration = ((1 - toolbar_readerActivity.alpha) * UI_ANIMATION_DURATION).toLong()
@@ -643,6 +644,7 @@ abstract class ReaderActivity :
         isHidePdfPage = true
     }
 
+    @SuppressLint("NewApi")
     private fun hideAllToolbars() {
         if (isBelowKitkat()) {
             val duration = (toolbar_readerActivity.alpha * UI_ANIMATION_DURATION).toLong()
@@ -656,6 +658,7 @@ abstract class ReaderActivity :
         }
     }
 
+    @SuppressLint("NewApi")
     private fun hideTopLeftBottomToolbars() {
         if (isBelowKitkat()) {
             val duration = (toolbar_readerActivity.alpha * UI_ANIMATION_DURATION).toLong()