Use AttachmentSaver to save story images.

This commit is contained in:
Jeffrey Starke
2025-03-20 15:23:26 -04:00
committed by Cody Henthorne
parent 293012c219
commit c876c7847e
5 changed files with 95 additions and 40 deletions

View File

@@ -102,7 +102,7 @@ class AttachmentSaver(private val host: Host) {
fun dismissSaveProgress()
}
private data class FragmentHost(private val fragment: Fragment) : Host {
data class FragmentHost(private val fragment: Fragment) : Host {
override fun showToast(getMessage: (Context) -> CharSequence) {
Toast.makeText(fragment.requireContext(), getMessage(fragment.requireContext()), Toast.LENGTH_LONG).show()