Skip to content

Commit

Permalink
show screenshots in about
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenMushroomNew committed Jan 1, 2022
1 parent b7d19ea commit 2c4f66b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

## 特性

- 媒体文件管理器(无需 root 或 xposed,仅需要[读取外部存储空间][3]权限)
- 媒体文件管理器(无需 root 或 Xposed,仅需要[读取外部存储空间][3]权限)
- 过滤媒体存储返回的数据,保护隐私数据不被查询
- 防止应用通过媒体存储随意写入文件
- 历史记录功能,了解应用是否使用媒体存储,是否有滥用情况
Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ dependencies {
def markwonVersion = '4.6.2'
implementation "io.noties.markwon:core:$markwonVersion"
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
implementation "io.noties.markwon:html:$markwonVersion"
implementation "io.noties.markwon:image-glide:$markwonVersion"
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface ReadmeService {
.addInterceptor { chain ->
val originalResponse = chain.proceed(chain.request())
if (context.hasWifiTransport) {
val maxAge = 60 // read from cache for 1 minute
val maxAge = 60 * 60 * 24 * 7 // read from cache for 1 week
originalResponse.newBuilder()
.header("Cache-Control", "public, max-age=$maxAge")
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.lifecycle.lifecycleScope
import dagger.hilt.android.AndroidEntryPoint
import io.noties.markwon.Markwon
import io.noties.markwon.ext.strikethrough.StrikethroughPlugin
import io.noties.markwon.html.HtmlPlugin
import io.noties.markwon.image.glide.GlideImagesPlugin
import kotlinx.coroutines.launch
import me.gm.cleaner.plugin.app.BaseFragment
Expand Down Expand Up @@ -52,6 +53,7 @@ class AboutFragment : BaseFragment() {
}
val markwon = Markwon.builder(requireContext())
.usePlugin(StrikethroughPlugin.create())
.usePlugin(HtmlPlugin.create())
.usePlugin(GlideImagesPlugin.create(requireContext()))
.build()
markwon.setMarkdown(binding.content, md)
Expand Down

0 comments on commit 2c4f66b

Please sign in to comment.