mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-20 08:00:58 +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) {
|
public static void setLayerType(ImageView view, IconType iconType) {
|
||||||
if (iconType == IconType.SVG && Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
|
if (iconType == IconType.SVG && Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
|
||||||
view.setLayerType(ImageView.LAYER_TYPE_SOFTWARE, null);
|
view.setLayerType(ImageView.LAYER_TYPE_SOFTWARE, null);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
view.setLayerType(ImageView.LAYER_TYPE_HARDWARE, null);
|
view.setLayerType(ImageView.LAYER_TYPE_HARDWARE, null);
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<de.hdodenhof.circleimageview.CircleImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
android:layout_height="75dp"
|
android:layout_height="75dp"
|
||||||
android:layout_width="match_parent"/>
|
android:layout_width="match_parent"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue