From 2943e3e660ca6d01914a45bfd0928bc5ed2821f2 Mon Sep 17 00:00:00 2001 From: Jieyi Date: Sat, 25 May 2019 22:15:15 +0900 Subject: [PATCH] Fix: change status bar color and bumped into the newest version. --- build.gradle | 2 +- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- kotlinknifer/build.gradle | 4 ++-- kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt | 2 ++ kotlinshaver/build.gradle | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 58a4c52..0296f1f 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:3.4.0' + classpath 'com.android.tools.build:gradle:3.4.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle.properties b/gradle.properties index b5d1398..095109a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,7 +21,7 @@ proj_name=kotlinknifer proj_libname=KotlinKnifer proj_group=com.devrapid.jieyi proj_artifactid=kotlinknifer -proj_version=2.1.10 +proj_version=2.1.11 proj_description=For developing an Android conveniently and rapidly. proj_websiteurl=https://github.com/pokk/KotlinKnifer proj_issuetrackerurl=https://github.com/pokk/KotlinKnifer/issues diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d8b7f92..803516e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip diff --git a/kotlinknifer/build.gradle b/kotlinknifer/build.gradle index a4e97b4..fb5586a 100644 --- a/kotlinknifer/build.gradle +++ b/kotlinknifer/build.gradle @@ -33,8 +33,8 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutine_version" implementation "org.jetbrains.anko:anko-commons:0.10.8" implementation "androidx.appcompat:appcompat:1.0.2" - implementation "androidx.core:core-ktx:1.0.1" - implementation "androidx.recyclerview:recyclerview:1.1.0-alpha04" + implementation "androidx.core:core-ktx:1.0.2" + implementation "androidx.recyclerview:recyclerview:1.1.0-alpha05" implementation "androidx.palette:palette:1.0.0" compile project(":kotlinshaver") } diff --git a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt index de0eb0d..acebeee 100644 --- a/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt +++ b/kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt @@ -106,6 +106,8 @@ internal inline fun Activity.setStatusBarColorBy(block: Window.() -> Unit) { clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) block() + // For not opaque(transparent) color. + decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN } else { TODO("Don't support the sdk version is less than 21 yet.") diff --git a/kotlinshaver/build.gradle b/kotlinshaver/build.gradle index 72be03d..56f3a07 100644 --- a/kotlinshaver/build.gradle +++ b/kotlinshaver/build.gradle @@ -7,7 +7,7 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlin_coroutine_version" compile "io.reactivex.rxjava2:rxkotlin:2.3.0" - compile "io.reactivex.rxjava2:rxjava:2.2.4" + compile "io.reactivex.rxjava2:rxjava:2.2.8" } sourceCompatibility = "1.8"