This commit is contained in:
tom5079
2020-09-10 22:45:27 +09:00
parent 6e2eeb29cc
commit b53de8624d
7 changed files with 18 additions and 6 deletions

View File

@@ -62,6 +62,11 @@ class ManageFavoritesFragment : PreferenceFragmentCompat() {
}
override fun onResponse(call: Call, response: Response) {
if (response.code() != 200) {
response.close()
return
}
Intent(Intent.ACTION_SEND).apply {
type = "text/plain"
putExtra(Intent.EXTRA_TEXT, response.body()?.use { it.string() }?.replace("\n", ""))