Compare commits
4 Commits
v123051331
...
v123051471
Author | SHA1 | Date | |
---|---|---|---|
7f96798f13 | |||
6e5704a45b | |||
495591159f | |||
718fe7c5ee |
@ -1,3 +1,10 @@
|
|||||||
|
**v123051331**
|
||||||
|
|
||||||
|
- fix: illegal input.
|
||||||
|
- Changelog for v123051321 [CI SKIP]
|
||||||
|
|
||||||
|
--------------------------------------------------------------------
|
||||||
|
|
||||||
**v123051321**
|
**v123051321**
|
||||||
|
|
||||||
- debug: Debug null context.
|
- debug: Debug null context.
|
||||||
|
@ -74,7 +74,6 @@ class ReaderActivity : AppCompatActivity(), DIAware {
|
|||||||
try {
|
try {
|
||||||
readItem(allItems[currentItem])
|
readItem(allItems[currentItem])
|
||||||
} catch (e: IndexOutOfBoundsException) {
|
} catch (e: IndexOutOfBoundsException) {
|
||||||
e.sendSilentlyWithAcraWithName("out of bound > size = ${allItems.size} currentItem = $currentItem")
|
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -553,8 +553,8 @@ class ArticleFragment : Fragment(), DIAware {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun performClick(): Boolean {
|
fun performClick(): Boolean {
|
||||||
if (binding.webcontent.hitTestResult.type == WebView.HitTestResult.IMAGE_TYPE ||
|
if (allImages != null && (binding.webcontent.hitTestResult.type == WebView.HitTestResult.IMAGE_TYPE ||
|
||||||
binding.webcontent.hitTestResult.type == WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE
|
binding.webcontent.hitTestResult.type == WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE)
|
||||||
) {
|
) {
|
||||||
|
|
||||||
val position: Int = allImages.indexOf(binding.webcontent.hitTestResult.extra)
|
val position: Int = allImages.indexOf(binding.webcontent.hitTestResult.extra)
|
||||||
|
@ -149,21 +149,23 @@ class FilterSheetFragment : BottomSheetDialogFragment(), DIAware {
|
|||||||
c.ellipsize = TextUtils.TruncateAt.END
|
c.ellipsize = TextUtils.TruncateAt.END
|
||||||
c.text = tag.tag
|
c.text = tag.tag
|
||||||
|
|
||||||
try {
|
if (tag.color.isNotEmpty()) {
|
||||||
val gd = GradientDrawable()
|
try {
|
||||||
val gdColor = try {
|
val gd = GradientDrawable()
|
||||||
Color.parseColor(tag.color)
|
val gdColor = try {
|
||||||
} catch (e: IllegalArgumentException) {
|
Color.parseColor(tag.color)
|
||||||
e.sendSilentlyWithAcraWithName("color issue " + tag.color)
|
} catch (e: IllegalArgumentException) {
|
||||||
resources.getColor(R.color.colorPrimary)
|
e.sendSilentlyWithAcraWithName("color issue " + tag.color)
|
||||||
|
resources.getColor(R.color.colorPrimary)
|
||||||
|
}
|
||||||
|
gd.setColor(gdColor)
|
||||||
|
gd.shape = GradientDrawable.RECTANGLE
|
||||||
|
gd.setSize(30, 30)
|
||||||
|
gd.cornerRadius = 30F
|
||||||
|
c.chipIcon = gd
|
||||||
|
} catch (e: Exception) {
|
||||||
|
e.sendSilentlyWithAcraWithName("tags > GradientDrawable")
|
||||||
}
|
}
|
||||||
gd.setColor(gdColor)
|
|
||||||
gd.shape = GradientDrawable.RECTANGLE
|
|
||||||
gd.setSize(30, 30)
|
|
||||||
gd.cornerRadius = 30F
|
|
||||||
c.chipIcon = gd
|
|
||||||
} catch (e: Exception) {
|
|
||||||
e.sendSilentlyWithAcraWithName("tags > GradientDrawable")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.setOnCloseIconClickListener {
|
c.setOnCloseIconClickListener {
|
||||||
|
Reference in New Issue
Block a user