[Android] Fix title showing twice on some devices + title less bold
Nicolas Pomepuy
git at videolan.org
Tue May 19 10:04:12 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 19 08:31:17 2020 +0200| [b85eba0a26ea03ea5f4c3f9258283e92d853e83f] | committer: Nicolas Pomepuy
Fix title showing twice on some devices + title less bold
Fixes #1317
> https://code.videolan.org/videolan/vlc-android/commit/b85eba0a26ea03ea5f4c3f9258283e92d853e83f
---
application/vlc-android/res/values/styles.xml | 1 -
application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/application/vlc-android/res/values/styles.xml b/application/vlc-android/res/values/styles.xml
index 2bf7d127e..a87dbc872 100644
--- a/application/vlc-android/res/values/styles.xml
+++ b/application/vlc-android/res/values/styles.xml
@@ -621,7 +621,6 @@
</style>
<style name="ToolbarTitleText" parent="@style/TextAppearance.MaterialComponents.Headline6">
- <item name="android:textStyle">bold</item>
<item name="android:textColor">?attr/colorControlNormal</item>
</style>
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
index 047a4b08a..39e3fbb2d 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
@@ -103,7 +103,7 @@ class MainActivity : ContentActivity(),
supportActionBar?.run {
setDisplayHomeAsUpEnabled(false)
setHomeButtonEnabled(false)
- setDisplayShowTitleEnabled(!AndroidDevices.isPhone)
+ setDisplayShowTitleEnabled(false)
}
}
More information about the Android
mailing list