Compare commits
6 Commits
v124010191
...
v124030731
Author | SHA1 | Date | |
---|---|---|---|
f24609c143 | |||
b94d7dc537 | |||
41910cc4cd | |||
db166ca9d4 | |||
db0d5a4a85 | |||
3bc0d7cf95 |
22
CHANGELOG.md
22
CHANGELOG.md
@ -1,3 +1,25 @@
|
|||||||
|
**v124020451**
|
||||||
|
|
||||||
|
- fix: Fixed handling of position in card adapter.
|
||||||
|
- Changelog for v124010301 [CI SKIP]
|
||||||
|
|
||||||
|
--------------------------------------------------------------------
|
||||||
|
|
||||||
|
**v124010301**
|
||||||
|
|
||||||
|
- fix: This may fix the oom errors.
|
||||||
|
- Changelog for v124010191 [CI SKIP]
|
||||||
|
|
||||||
|
--------------------------------------------------------------------
|
||||||
|
|
||||||
|
**v124010191**
|
||||||
|
|
||||||
|
- fix: moving listeners.
|
||||||
|
- chore: removed a useless log.
|
||||||
|
- Changelog for v124010032 [CI SKIP]
|
||||||
|
|
||||||
|
--------------------------------------------------------------------
|
||||||
|
|
||||||
**v124010032**
|
**v124010032**
|
||||||
|
|
||||||
- fix: Another date format thing.
|
- fix: Another date format thing.
|
||||||
|
@ -94,10 +94,10 @@ class ItemCardAdapter(
|
|||||||
position: Int,
|
position: Int,
|
||||||
) {
|
) {
|
||||||
with(holder) {
|
with(holder) {
|
||||||
val itm = items[position]
|
val itm = items[holder.bindingAdapterPosition]
|
||||||
|
|
||||||
handleClickListeners(position)
|
handleClickListeners(holder.bindingAdapterPosition)
|
||||||
handleLinkOpening(position)
|
handleLinkOpening(holder.bindingAdapterPosition)
|
||||||
|
|
||||||
binding.favButton.isSelected = itm.starred
|
binding.favButton.isSelected = itm.starred
|
||||||
if (appSettingsService.getPublicAccess()) {
|
if (appSettingsService.getPublicAccess()) {
|
||||||
|
@ -45,13 +45,13 @@ class ItemListAdapter(
|
|||||||
position: Int,
|
position: Int,
|
||||||
) {
|
) {
|
||||||
with(holder) {
|
with(holder) {
|
||||||
val itm = items[position]
|
val itm = items[holder.bindingAdapterPosition]
|
||||||
|
|
||||||
binding.root.setOnClickListener {
|
binding.root.setOnClickListener {
|
||||||
repository.setReaderItems(items)
|
repository.setReaderItems(items)
|
||||||
c.openItemUrl(
|
c.openItemUrl(
|
||||||
bindingAdapterPosition,
|
holder.bindingAdapterPosition,
|
||||||
items[bindingAdapterPosition].getLinkDecoded(),
|
items[holder.bindingAdapterPosition].getLinkDecoded(),
|
||||||
appSettingsService.isArticleViewerEnabled(),
|
appSettingsService.isArticleViewerEnabled(),
|
||||||
app,
|
app,
|
||||||
)
|
)
|
||||||
|
@ -89,6 +89,7 @@ abstract class ItemsAdapter<VH : RecyclerView.ViewHolder?> : RecyclerView.Adapte
|
|||||||
if (repository.displayedItems == ItemType.UNREAD) {
|
if (repository.displayedItems == ItemType.UNREAD) {
|
||||||
items.remove(item)
|
items.remove(item)
|
||||||
notifyItemRemoved(position)
|
notifyItemRemoved(position)
|
||||||
|
notifyItemRangeChanged(position, itemCount)
|
||||||
updateItems(items)
|
updateItems(items)
|
||||||
} else {
|
} else {
|
||||||
notifyItemChanged(position)
|
notifyItemChanged(position)
|
||||||
|
@ -26,7 +26,7 @@ actual class DateUtils {
|
|||||||
throw Exception("Unrecognized format for $dateString")
|
throw Exception("Unrecognized format for $dateString")
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Napier.e(e.stackTraceToString(), tag = "DateUtils.parseDate")
|
Napier.e("parseDate failed", e, tag = "DateUtils.parseDate")
|
||||||
"1991-03-18T03:00:00"
|
"1991-03-18T03:00:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,7 +422,7 @@ class Repository(
|
|||||||
val response = api.login()
|
val response = api.login()
|
||||||
result = response.isSuccess == true
|
result = response.isSuccess == true
|
||||||
} catch (cause: Throwable) {
|
} catch (cause: Throwable) {
|
||||||
Napier.e(cause.stackTraceToString(), tag = "RepositoryImpl.login")
|
Napier.e("login failed", cause, tag = "RepositoryImpl.login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
@ -436,7 +436,7 @@ class Repository(
|
|||||||
// a random rss feed, that would throw a NoTransformationFoundException
|
// a random rss feed, that would throw a NoTransformationFoundException
|
||||||
fetchFailed = !api.getItemsWithoutCatch().success
|
fetchFailed = !api.getItemsWithoutCatch().success
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
Napier.e(e.stackTraceToString(), tag = "RepositoryImpl.shouldBeSelfossInstance")
|
Napier.e("checkIfFetchFails failed", e, tag = "RepositoryImpl.shouldBeSelfossInstance")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -451,7 +451,7 @@ class Repository(
|
|||||||
Napier.e("Couldn't logout.", tag = "RepositoryImpl.logout")
|
Napier.e("Couldn't logout.", tag = "RepositoryImpl.logout")
|
||||||
}
|
}
|
||||||
} catch (cause: Throwable) {
|
} catch (cause: Throwable) {
|
||||||
Napier.e(cause.stackTraceToString(), tag = "RepositoryImpl.logout")
|
Napier.e("logout failed", cause, tag = "RepositoryImpl.logout")
|
||||||
}
|
}
|
||||||
appSettingsService.clearAll()
|
appSettingsService.clearAll()
|
||||||
} else {
|
} else {
|
||||||
|
@ -441,7 +441,7 @@ class AppSettingsService(acraSenderServiceProcess: Boolean = false) {
|
|||||||
login: String,
|
login: String,
|
||||||
password: String,
|
password: String,
|
||||||
) {
|
) {
|
||||||
val regex = """\/\/(\D+):(\D+)@""".toRegex()
|
val regex = """\/\/(\S+):(\S+)@""".toRegex()
|
||||||
val matchResult = regex.find(url)
|
val matchResult = regex.find(url)
|
||||||
if (matchResult != null) {
|
if (matchResult != null) {
|
||||||
val (basicLogin, basicPassword) = matchResult.destructured
|
val (basicLogin, basicPassword) = matchResult.destructured
|
||||||
|
Reference in New Issue
Block a user