Skip to content

Commit

Permalink
Fix: change status bar color and bumped into the newest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
pokk committed May 25, 2019
1 parent 263f031 commit 2943e3e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions kotlinknifer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 2 additions & 0 deletions kotlinknifer/src/main/java/com/devrapid/kotlinknifer/View.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
2 changes: 1 addition & 1 deletion kotlinshaver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2943e3e

Please sign in to comment.