mirror of
https://github.com/google-ai-edge/gallery.git
synced 2025-07-17 11:46:39 -04:00
Fix edge-to-edge on three-button nav bar
This commit is contained in:
parent
ebb605131d
commit
44f1252990
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package com.google.ai.edge.gallery
|
package com.google.ai.edge.gallery
|
||||||
|
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.activity.ComponentActivity
|
import androidx.activity.ComponentActivity
|
||||||
import androidx.activity.compose.setContent
|
import androidx.activity.compose.setContent
|
||||||
|
@ -32,6 +33,12 @@ class MainActivity : ComponentActivity() {
|
||||||
|
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
enableEdgeToEdge()
|
enableEdgeToEdge()
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
|
// Fix for three-button nav not properly going edge-to-edge.
|
||||||
|
// TODO: https://issuetracker.google.com/issues/298296168
|
||||||
|
window.isNavigationBarContrastEnforced = false
|
||||||
|
}
|
||||||
|
|
||||||
setContent {
|
setContent {
|
||||||
GalleryTheme {
|
GalleryTheme {
|
||||||
Surface(
|
Surface(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue