Compare commits
No commits in common. "ad8801145453faa904ff935b8113f6cfb88bec17" and "ab9c46f0eb1846f087043a14c8ca3e4c38244654" have entirely different histories.
ad88011454
...
ab9c46f0eb
@ -325,7 +325,7 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
getBitmapInputStream(image, Bitmap.CompressFormat.JPEG)
|
getBitmapInputStream(image, Bitmap.CompressFormat.JPEG)
|
||||||
)
|
)
|
||||||
} catch (e: ExecutionException) {
|
} catch (e: ExecutionException) {
|
||||||
// Do nothing
|
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > jpeg > $url")
|
||||||
}
|
}
|
||||||
} else if (url.lowercase(Locale.US).contains(".png")) {
|
} else if (url.lowercase(Locale.US).contains(".png")) {
|
||||||
try {
|
try {
|
||||||
@ -337,7 +337,7 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
getBitmapInputStream(image, Bitmap.CompressFormat.PNG)
|
getBitmapInputStream(image, Bitmap.CompressFormat.PNG)
|
||||||
)
|
)
|
||||||
} catch (e: ExecutionException) {
|
} catch (e: ExecutionException) {
|
||||||
// Do nothing
|
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > png > $url")
|
||||||
}
|
}
|
||||||
} else if (url.lowercase(Locale.US).contains(".webp")) {
|
} else if (url.lowercase(Locale.US).contains(".webp")) {
|
||||||
try {
|
try {
|
||||||
@ -349,7 +349,7 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
getBitmapInputStream(image, Bitmap.CompressFormat.WEBP)
|
getBitmapInputStream(image, Bitmap.CompressFormat.WEBP)
|
||||||
)
|
)
|
||||||
} catch (e: ExecutionException) {
|
} catch (e: ExecutionException) {
|
||||||
// Do nothing
|
e.sendSilentlyWithAcraWithName("shouldInterceptRequest > webp > $url")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class SelfossModel {
|
|||||||
)
|
)
|
||||||
@Serializable
|
@Serializable
|
||||||
data class SourceParams(
|
data class SourceParams(
|
||||||
val url: String?
|
val url: String
|
||||||
)
|
)
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Item(
|
data class Item(
|
||||||
|
@ -20,7 +20,7 @@ fun SOURCE.toView(): SelfossModel.Source =
|
|||||||
this.spout,
|
this.spout,
|
||||||
this.error,
|
this.error,
|
||||||
this.icon,
|
this.icon,
|
||||||
SelfossModel.SourceParams(this.url)
|
if (this.url != null) SelfossModel.SourceParams(this.url) else null
|
||||||
)
|
)
|
||||||
|
|
||||||
fun SelfossModel.Source.toEntity(): SOURCE =
|
fun SelfossModel.Source.toEntity(): SOURCE =
|
||||||
|
Loading…
Reference in New Issue
Block a user