Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4cf2c46

Browse filesBrowse files
committed
Workaround Samsung One UI 7.0 navbar coloring
1 parent 5a1c6fa commit 4cf2c46
Copy full SHA for 4cf2c46

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎app/src/main/java/org/fcitx/fcitx5/android/input/NavigationBarManager.kt

Copy file name to clipboardExpand all lines: app/src/main/java/org/fcitx/fcitx5/android/input/NavigationBarManager.kt
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import org.fcitx.fcitx5.android.data.prefs.AppPrefs
1515
import org.fcitx.fcitx5.android.data.theme.Theme
1616
import org.fcitx.fcitx5.android.data.theme.ThemeManager
1717
import org.fcitx.fcitx5.android.data.theme.ThemePrefs.NavbarBackground
18+
import org.fcitx.fcitx5.android.utils.DeviceUtil
1819

1920
class NavigationBarManager {
2021

@@ -68,6 +69,10 @@ class NavigationBarManager {
6869
window.useSystemNavbarBackground(false)
6970
window.setNavbarBackgroundColor(Color.TRANSPARENT)
7071
window.enforceNavbarContrast(false)
72+
// it seems One UI 7.0 (Android 15) does not allow drawing behind navbar
73+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM && DeviceUtil.isSamsungOneUI) {
74+
shouldUpdateNavbarBackground = true
75+
}
7176
}
7277
}
7378
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.