mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-05 04:40:38 +00:00
Fix multiple icon rendering issues in card_icon
- Use software rendering on API <= 27 - Use ImageView instead of CircleImageView Fixes #725
This commit is contained in:
parent
7d3666a5d0
commit
b195d0dadd
2 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ public class IconViewHelper {
|
|||
public static void setLayerType(ImageView view, IconType iconType) {
|
||||
if (iconType == IconType.SVG && Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
|
||||
view.setLayerType(ImageView.LAYER_TYPE_SOFTWARE, null);
|
||||
return;
|
||||
}
|
||||
|
||||
view.setLayerType(ImageView.LAYER_TYPE_HARDWARE, null);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
android:focusable="true"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_height="75dp"
|
||||
android:layout_width="match_parent"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue