mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-17 04:00:48 +01:00
fixed read on main thread
updated version
This commit is contained in:
parent
c019ae33ad
commit
e48a39979a
@ -56,7 +56,7 @@ subprojects {
|
|||||||
KPreferences : '0.9.7',
|
KPreferences : '0.9.7',
|
||||||
Kovenant : '3.3.0',
|
Kovenant : '3.3.0',
|
||||||
ParcelablePlease : '1.0.2',
|
ParcelablePlease : '1.0.2',
|
||||||
Chameleon : '0.9.17',
|
Chameleon : '0.9.18',
|
||||||
UniqR : '0.9.1',
|
UniqR : '0.9.1',
|
||||||
SQLiteQB : '0.9.15',
|
SQLiteQB : '0.9.15',
|
||||||
Glide : '3.7.0',
|
Glide : '3.7.0',
|
||||||
|
@ -41,8 +41,8 @@ android {
|
|||||||
applicationId "org.mariotaku.twidere"
|
applicationId "org.mariotaku.twidere"
|
||||||
minSdkVersion project.properties['overrideMinSdkVersion'] ?: 14
|
minSdkVersion project.properties['overrideMinSdkVersion'] ?: 14
|
||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
versionCode 362
|
versionCode 363
|
||||||
versionName '3.6.2'
|
versionName '3.6.3'
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")'
|
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")'
|
||||||
|
@ -22,9 +22,6 @@ package org.mariotaku.twidere.extension.model
|
|||||||
import org.mariotaku.twidere.model.RefreshTaskParam
|
import org.mariotaku.twidere.model.RefreshTaskParam
|
||||||
import org.mariotaku.twidere.model.pagination.SinceMaxPagination
|
import org.mariotaku.twidere.model.pagination.SinceMaxPagination
|
||||||
|
|
||||||
val RefreshTaskParam.hasMaxIds: Boolean
|
|
||||||
get() = pagination?.any { (it as? SinceMaxPagination)?.maxId != null } ?: false
|
|
||||||
|
|
||||||
fun RefreshTaskParam.getMaxId(index: Int): String? {
|
fun RefreshTaskParam.getMaxId(index: Int): String? {
|
||||||
return (pagination?.get(index) as? SinceMaxPagination)?.maxId
|
return (pagination?.get(index) as? SinceMaxPagination)?.maxId
|
||||||
}
|
}
|
||||||
|
@ -192,6 +192,9 @@ abstract class CursorStatusesFragment : AbsStatusesFragment() {
|
|||||||
|
|
||||||
override val shouldAbort: Boolean
|
override val shouldAbort: Boolean
|
||||||
get() = context == null
|
get() = context == null
|
||||||
|
|
||||||
|
override val hasMaxIds: Boolean
|
||||||
|
get() = false
|
||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import org.mariotaku.sqliteqb.library.Expression
|
|||||||
import org.mariotaku.twidere.TwidereConstants.NOTIFICATION_ID_HOME_TIMELINE
|
import org.mariotaku.twidere.TwidereConstants.NOTIFICATION_ID_HOME_TIMELINE
|
||||||
import org.mariotaku.twidere.annotation.ReadPositionTag
|
import org.mariotaku.twidere.annotation.ReadPositionTag
|
||||||
import org.mariotaku.twidere.constant.IntentConstants.EXTRA_EXTRAS
|
import org.mariotaku.twidere.constant.IntentConstants.EXTRA_EXTRAS
|
||||||
import org.mariotaku.twidere.extension.model.hasMaxIds
|
|
||||||
import org.mariotaku.twidere.model.ParameterizedExpression
|
import org.mariotaku.twidere.model.ParameterizedExpression
|
||||||
import org.mariotaku.twidere.model.RefreshTaskParam
|
import org.mariotaku.twidere.model.RefreshTaskParam
|
||||||
import org.mariotaku.twidere.model.UserKey
|
import org.mariotaku.twidere.model.UserKey
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.mariotaku.twidere.model
|
package org.mariotaku.twidere.model
|
||||||
|
|
||||||
import org.mariotaku.twidere.model.pagination.Pagination
|
import org.mariotaku.twidere.model.pagination.Pagination
|
||||||
|
import org.mariotaku.twidere.model.pagination.SinceMaxPagination
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mariotaku on 16/2/14.
|
* Created by mariotaku on 16/2/14.
|
||||||
@ -18,4 +19,6 @@ interface RefreshTaskParam {
|
|||||||
|
|
||||||
val isBackground: Boolean get() = false
|
val isBackground: Boolean get() = false
|
||||||
|
|
||||||
|
val hasMaxIds: Boolean
|
||||||
|
get() = pagination?.any { (it as? SinceMaxPagination)?.maxId != null } ?: false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user