Skip to content

Commit

Permalink
Disable ImageVector preview feature for "androidx.compose.material.ic…
Browse files Browse the repository at this point in the history
…ons" package
  • Loading branch information
egorikftp committed Oct 3, 2024
1 parent b2fce2d commit cf2a976
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class ImageVectorPreviewEditorProvider :
.bufferedReader()
.use { it.readText() }

if (content.contains("package androidx.compose.material.icons\n")) {
return false
}

return content.contains("androidx.compose.ui.graphics.vector.ImageVector") &&
(
content.contains("androidx.compose.ui.graphics.vector.path") ||
Expand Down

0 comments on commit cf2a976

Please sign in to comment.