Skip to content

Commit

Permalink
Fixing #42: Status bar white on Lollipop
Browse files Browse the repository at this point in the history
  • Loading branch information
BijoySingh committed Jan 18, 2018
1 parent 292936e commit b489f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.bijoysingh.quicknote"
minSdkVersion 17
targetSdkVersion 27
versionCode 41
versionName "4.1.2"
versionCode 42
versionName "4.1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ abstract class ThemedActivity : AppCompatActivity() {
}

fun getThemeColor(): Int {
return getColor(R.color.white, R.color.material_grey_800)
val lightColor = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) R.color.white else R.color.material_grey_400
return getColor(lightColor, R.color.material_grey_800)
}

fun getColor(lightColorRes: Int, darkColorRes: Int): Int {
Expand Down

0 comments on commit b489f62

Please sign in to comment.