Skip to content

Commit 6bb93d0

Browse files
committed
Remove dividers in settings
1 parent 5d0e930 commit 6bb93d0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

app/src/main/java/io/github/chsbuffer/revancedxposed/music/misc/settings/SettingsPatch.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ fun MusicHook.SettingsHook() {
7171
GoogleApiActivityHook.initialize(hook, activity)
7272
val musicTheme = Utils.getResourceIdentifier("@style/Theme.YouTubeMusic", "style")
7373
activity.setTheme(musicTheme)
74+
activity.theme.applyStyle(R.style.ListDividerNull, true)
7475
param.result = Unit
7576
}
7677
}

app/src/main/java/io/github/chsbuffer/revancedxposed/youtube/misc/settings/SettingsPatch.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fun YoutubeHook.SettingsHook() {
3939
val hook = LicenseActivityHook.createInstance()
4040
// must set theme before original set theme
4141
hook.customizeActivityTheme(activity)
42+
activity.theme.applyStyle(R.style.ListDividerNull, true)
4243

4344
try {
4445
param.invokeOriginalMethod()

app/src/main/res/values/themes.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@
1414
<item name="android:textColorSecondary">@android:color/secondary_text_light_nodisable</item>
1515
</style>
1616

17+
<style name="ListDividerNull">
18+
<item name="android:listDivider">@null</item>
19+
</style>
20+
1721
</resources>

0 commit comments

Comments
 (0)