Skip to content

Commit 37567f8

Browse files
committed
Apply rounded effects to favorites again (see #931)
1 parent e0bf818 commit 37567f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/fr/neamar/kiss/forwarder/InterfaceTweaks.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,18 @@ private void applyRoundedCorners(MainActivity mainActivity) {
8585
if (prefs.getBoolean("pref-rounded-bars", false)) {
8686
mainActivity.kissBar.setBackgroundResource(R.drawable.rounded_kiss_bar);
8787
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
88+
mainActivity.findViewById(R.id.externalFavoriteBar).setBackgroundResource(R.drawable.rounded_search_bar);
8889
mainActivity.findViewById(R.id.searchEditLayout).setBackgroundResource(R.drawable.rounded_search_bar);
8990
}
9091
else {
9192
// Before API21, you can't access values from current theme using ?attr/
9293
// So we made two different drawables (#931).
9394
if(getSearchBackgroundColor() == Color.WHITE) {
95+
mainActivity.findViewById(R.id.externalFavoriteBar).setBackgroundResource(R.drawable.rounded_search_bar_pre21_light);
9496
mainActivity.findViewById(R.id.searchEditLayout).setBackgroundResource(R.drawable.rounded_search_bar_pre21_light);
9597
}
9698
else {
99+
mainActivity.findViewById(R.id.externalFavoriteBar).setBackgroundResource(R.drawable.rounded_search_bar_pre21_dark);
97100
mainActivity.findViewById(R.id.searchEditLayout).setBackgroundResource(R.drawable.rounded_search_bar_pre21_dark);
98101
}
99102
}

0 commit comments

Comments
 (0)