Merge pull request #6029 from Bnyro/master

fix: navigation bar color when pure theme disabled
This commit is contained in:
Bnyro 2024-05-14 21:07:40 +02:00 committed by GitHub
commit a8771ab154
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 4 deletions

View File

@ -15,8 +15,8 @@ android {
applicationId = "com.github.libretube" applicationId = "com.github.libretube"
minSdk = 21 minSdk = 21
targetSdk = 34 targetSdk = 34
versionCode = 52 versionCode = 53
versionName = "0.23.1" versionName = "0.23.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
resValue("string", "app_name", "LibreTube") resValue("string", "app_name", "LibreTube")

View File

@ -112,8 +112,12 @@ class MainActivity : BaseActivity() {
} }
// sets the color if the navigation bar is visible // sets the color if the navigation bar is visible
val bottomNavColor = SurfaceColors.getColorForElevation(this, binding.bottomNav.elevation).takeIf { val bottomNavColor = if (binding.bottomNav.menu.size() == 0) {
binding.bottomNav.menu.size() > 0 null
} else if (PreferenceHelper.getBoolean(PreferenceKeys.PURE_THEME, false)) {
SurfaceColors.getColorForElevation(this, binding.bottomNav.elevation)
} else {
ThemeHelper.getThemeColor(this, com.google.android.material.R.attr.colorSurfaceContainer)
} }
ThemeHelper.setSystemBarColors(this, window, bottomNavColor) ThemeHelper.setSystemBarColors(this, window, bottomNavColor)

View File

@ -0,0 +1,8 @@
* fix: comments reloading on sheet reopen and scroll position not restored
* fix: status bar doesn't follow app theme
* fix: dearrow for playing video and watch history
* fix: crash when trying to dearrow feed items
* fix: auto fullscreen causes player layout issues
* fix: crash when ending player service / fragment
* fix: enter PiP mode when clicking link in description
* fix: navigation bar missing when closing player in fullscreen