updated version

This commit is contained in:
Mariotaku Lee 2017-03-15 16:06:55 +08:00
parent 15f7fa9677
commit 4136579715
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
7 changed files with 11 additions and 13 deletions

View File

@ -33,7 +33,7 @@ subprojects {
buildscript {
ext {
libVersions = [
Kotlin : '1.1.0',
Kotlin : '1.1.1',
SupportLib : '25.2.0',
MariotakuCommons: '0.9.11',
RestFu : '0.9.42',

View File

@ -96,7 +96,7 @@ public class Status extends TwitterResponseObject implements Comparable<Status>,
@JsonField(name = "in_reply_to_screen_name")
String inReplyToScreenName;
@JsonField(name = "user")
@JsonField(name = {"user", "friendica_owner"})
User user;
@JsonField(name = "geo")

View File

@ -34,8 +34,8 @@ android {
applicationId "org.mariotaku.twidere"
minSdkVersion 14
targetSdkVersion 25
versionCode 299
versionName '3.4.37'
versionCode 300
versionName '3.4.38'
multiDexEnabled true
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")'

View File

@ -417,7 +417,7 @@ abstract class ParcelableStatusesAdapter(
val indices = (data as ObjectCursor).indices as ParcelableStatusCursorIndices
return readCursorValueAction(cursor, indices)
}
return readStatusValueAction(getStatus(position))
return readStatusValueAction(getStatus(position, raw))
}
private fun getStatus(position: Int, countIndex: Int, raw: Boolean = false): ParcelableStatus {

View File

@ -297,8 +297,9 @@ abstract class CursorActivitiesFragment : AbsActivitiesFragment() {
refreshEnabled = true
showContentOrError()
if (event.exception is GetStatusesTask.GetTimelineException && userVisibleHint) {
Toast.makeText(context, event.exception.getToastMessage(context), Toast.LENGTH_SHORT).show()
val exception = event.exception
if (exception is GetStatusesTask.GetTimelineException && userVisibleHint) {
Toast.makeText(context, exception.getToastMessage(context), Toast.LENGTH_SHORT).show()
}
}
}

View File

@ -269,8 +269,9 @@ abstract class CursorStatusesFragment : AbsStatusesFragment() {
refreshEnabled = true
showContentOrError()
if (event.exception is GetStatusesTask.GetTimelineException && userVisibleHint) {
Toast.makeText(context, event.exception.getToastMessage(context), Toast.LENGTH_SHORT).show()
val exception = event.exception
if (exception is GetStatusesTask.GetTimelineException && userVisibleHint) {
Toast.makeText(context, exception.getToastMessage(context), Toast.LENGTH_SHORT).show()
}
}
}

View File

@ -176,10 +176,6 @@ class StreamingService : BaseService() {
stopForeground(true)
}
private fun buildNotification() {
}
private fun newStreamingRunnable(account: AccountDetails, preferences: AccountPreferences): StreamingRunnable<*>? {
when (account.type) {
AccountType.TWITTER -> {