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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue