Skip to content

Commit

Permalink
Fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
theMr17 committed Jan 6, 2025
1 parent 100f35a commit 772890d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ import androidx.compose.ui.viewinterop.AndroidView
import org.oppia.android.app.customview.LessonThumbnailImageView
import org.oppia.android.app.model.LessonThumbnail

/**
* A composable function that displays a lesson thumbnail image using a custom Android view.
*
* This function integrates the [LessonThumbnailImageView] within a Compose layout, allowing it
* to render a lesson thumbnail image based on the provided parameters. The implementation
* currently relies on a traditional Android View approach due to compatibility issues with the
* Glide Compose library.
*
* @param entityId The unique identifier for the entity associated with the thumbnail.
* @param entityType The type of the entity (e.g., classroom, topic, story).
* @param lessonThumbnail The [LessonThumbnail] containing metadata required to load the image.
* @param modifier The [Modifier] to be applied to the layout, defaulting to [Modifier].
*/
@Composable
fun ThumbnailImage(
entityId: String,
Expand Down
4 changes: 4 additions & 0 deletions scripts/assets/test_file_exemptions.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ test_file_exemption {
exempted_file_path: "app/src/main/java/org/oppia/android/app/classroom/promotedlist/PromotedStoryList.kt"
test_file_not_required: true
}
test_file_exemption {
exempted_file_path: "app/src/main/java/org/oppia/android/app/classroom/ThumbnailImage.kt"
test_file_not_required: true
}
test_file_exemption {
exempted_file_path: "app/src/main/java/org/oppia/android/app/classroom/topiclist/AllTopicsHeaderText.kt"
test_file_not_required: true
Expand Down

0 comments on commit 772890d

Please sign in to comment.