fix wrong if
This commit is contained in:
parent
21dd2dde45
commit
0aa1a83621
|
@ -128,7 +128,7 @@ class StatusDetailsAdapter(
|
||||||
ITEM_IDX_CONVERSATION -> {
|
ITEM_IDX_CONVERSATION -> {
|
||||||
data?.let { data ->
|
data?.let { data ->
|
||||||
var idx = position - getIndexStart(ITEM_IDX_CONVERSATION)
|
var idx = position - getIndexStart(ITEM_IDX_CONVERSATION)
|
||||||
if (idx !in data.indices) {
|
if (idx in data.indices) {
|
||||||
if (data[idx].is_filtered) {
|
if (data[idx].is_filtered) {
|
||||||
idx++
|
idx++
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ class StatusDetailsAdapter(
|
||||||
var idx = position - getIndexStart(ITEM_IDX_CONVERSATION) -
|
var idx = position - getIndexStart(ITEM_IDX_CONVERSATION) -
|
||||||
getTypeCount(ITEM_IDX_CONVERSATION) - getTypeCount(ITEM_IDX_STATUS) +
|
getTypeCount(ITEM_IDX_CONVERSATION) - getTypeCount(ITEM_IDX_STATUS) +
|
||||||
replyStart
|
replyStart
|
||||||
if (idx !in data.indices) {
|
if (idx in data.indices) {
|
||||||
if (data[idx].is_filtered) {
|
if (data[idx].is_filtered) {
|
||||||
idx++
|
idx++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue