Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marunjar committed Jan 30, 2024
1 parent c3aabcf commit 155a697
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/fr/neamar/kiss/utils/DrawableUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ private static float getScaleToFit(IconShape shape) {
return 0.26f;
case SHAPE_OCTAGON:
return 0.25f;
default:
return 0f;
}
return 0.f;
}

/**
Expand All @@ -106,7 +107,7 @@ public static Drawable applyIconMaskShape(@NonNull Context ctx, @NonNull Drawabl

Bitmap outputBitmap;
Canvas outputCanvas;
if (isAdaptiveIconDrawable(icon)) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && isAdaptiveIconDrawable(icon)) {
AdaptiveIconDrawable adaptiveIcon = (AdaptiveIconDrawable) icon;
Drawable bgDrawable = adaptiveIcon.getBackground();
Drawable fgDrawable = adaptiveIcon.getForeground();
Expand Down

0 comments on commit 155a697

Please sign in to comment.