Skip to content

Commit

Permalink
load image from assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Oct 28, 2024
1 parent a129c35 commit c3f84a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
val markdownContent = """
## myPlanet issues challenge
![issues challenge](https://meetgor-cdn.pages.dev/github-filter-issues.png)
![issues challenge](file:///android_asset/images/github-filter-issues.png)
get ready for virtual intern github issues challenge!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
val markdownContent = """
## myPlanet issues challenge

![issues challenge](https://meetgor-cdn.pages.dev/github-filter-issues.png)
![issues challenge](file:///android_asset/images/github-filter-issues.png)

get ready for virtual intern github issues challenge!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Markdown {
.usePlugin(object : AbstractMarkwonPlugin() {
override fun configure(registry: MarkwonPlugin.Registry) {
registry.require(ImagesPlugin::class.java) { imagesPlugin ->
imagesPlugin.addSchemeHandler(FileSchemeHandler.create())
imagesPlugin.addSchemeHandler(FileSchemeHandler.createWithAssets(context.assets))
imagesPlugin.addSchemeHandler(NetworkSchemeHandler.create())
imagesPlugin.addSchemeHandler(OkHttpNetworkSchemeHandler.create())
}
Expand Down

0 comments on commit c3f84a6

Please sign in to comment.