mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
Merge pull request #6029 from Bnyro/master
fix: navigation bar color when pure theme disabled
This commit is contained in:
commit
a8771ab154
@ -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")
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
8
fastlane/metadata/android/en-US/changelogs/53.txt
Normal file
8
fastlane/metadata/android/en-US/changelogs/53.txt
Normal 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
|
Loading…
x
Reference in New Issue
Block a user