Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemilla committed Sep 19, 2023
1 parent c55cda8 commit 0faf2fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencyResolutionManagement {

```gradle
dependencies {
implementation 'com.github.trycourier:courier-android:2.0.33'
implementation 'com.github.trycourier:courier-android:2.0.34'
}
```

Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/courier/android/Courier.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Courier private constructor(internal val context: Context) {
companion object {

var USER_AGENT = CourierAgent.NATIVE_ANDROID
internal const val VERSION = "2.0.33"
internal const val VERSION = "2.0.34"
internal const val TAG = "Courier SDK"
internal const val COURIER_PENDING_NOTIFICATION_KEY = "courier_pending_notification_key"
internal val eventBus by lazy { NotificationEventBus() }
Expand Down
24 changes: 0 additions & 24 deletions android/src/main/java/com/courier/android/inbox/CourierInbox.kt
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ class CourierInbox @JvmOverloads constructor(context: Context, attrs: AttributeS
},
onMessagesChanged = { messages, unreadMessageCount, totalMessageCount, canPaginate ->

mRequestedLayout = false

refreshBrand()

state = if (messages.isEmpty()) State.EMPTY.apply { title = "No messages found" } else State.CONTENT
Expand Down Expand Up @@ -425,28 +423,6 @@ class CourierInbox @JvmOverloads constructor(context: Context, attrs: AttributeS
onScrollInbox = listener
}

// Fixes for React Native UI bugs

private var mRequestedLayout = false

@SuppressLint("WrongCall")
override fun requestLayout() {
super.requestLayout()

// We need to intercept this method because if we don't our children will never update
// Check https://stackoverflow.com/questions/49371866/recyclerview-wont-update-child-until-i-scroll

if (!mRequestedLayout) {
mRequestedLayout = true
post {
mRequestedLayout = false
layout(left, top, right, bottom)
onLayout(false, left, top, right, bottom)
}
}

}


}

Expand Down

0 comments on commit 0faf2fc

Please sign in to comment.