Make sure Lollipop+ devices use black navigation bars
Upgrade Gradle again
This commit is contained in:
parent
26127f3b96
commit
8f637ef773
3 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
package net.theoks.customstreams.android
|
||||
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
@ -12,6 +14,8 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
if (Build.VERSION.SDK_INT >= 21)
|
||||
window.navigationBarColor = Color.BLACK
|
||||
setContentView(R.layout.activity_main)
|
||||
val navView: BottomNavigationView = findViewById(R.id.nav_view)
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package net.theoks.customstreams.android
|
||||
|
||||
import android.app.PictureInPictureParams
|
||||
import android.graphics.Color
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
|
@ -20,6 +21,10 @@ class PlayerActivity : AppCompatActivity() {
|
|||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 21)
|
||||
window.navigationBarColor = Color.BLACK
|
||||
|
||||
val streamKey = intent.getStringExtra("net.theoks.customstreams.streamkey")
|
||||
if(streamKey == null || streamKey == "") {
|
||||
val duration = Toast.LENGTH_LONG
|
||||
|
|
|
@ -8,7 +8,7 @@ buildscript {
|
|||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.6.0'
|
||||
classpath 'com.android.tools.build:gradle:3.6.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue