mirror of
https://github.com/google-ai-edge/gallery.git
synced 2025-07-16 11:16:43 -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
|
||||
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.compose.setContent
|
||||
|
@ -32,6 +33,12 @@ class MainActivity : ComponentActivity() {
|
|||
|
||||
super.onCreate(savedInstanceState)
|
||||
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 {
|
||||
GalleryTheme {
|
||||
Surface(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue