Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/src/main/java/io/plaidapp/ui/PlaidApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package io.plaidapp.ui
import android.app.Activity
import android.app.Application
import android.content.Context
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.Q
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
import androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode
import androidx.core.os.BuildCompat
import io.plaidapp.core.dagger.CoreComponent
import io.plaidapp.core.dagger.DaggerCoreComponent

Expand All @@ -33,7 +34,7 @@ class PlaidApplication : Application() {

override fun onCreate() {
super.onCreate()
val nightMode = if (BuildCompat.isAtLeastQ()) {
val nightMode = if (SDK_INT >= Q) {
MODE_NIGHT_FOLLOW_SYSTEM
} else {
MODE_NIGHT_AUTO_BATTERY
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ buildscript { scriptHandler ->
apply from: 'repositories.gradle',
to: scriptHandler
ext.versions = [
'compileSdk' : 28,
'compileSdk' : 29,
'minSdk' : 23,
'targetSdk' : 28,
'targetSdk' : 29,
'appcompat' : '1.1.0-alpha04',
'androidx' : '1.0.0',
'androidxCollection' : '1.0.0',
Expand Down