Skip to content

Commit

Permalink
Merge pull request #96 from Tinkoff/2.5.10
Browse files Browse the repository at this point in the history
2.5.10
  • Loading branch information
IlnarH authored Jul 11, 2022
2 parents 8a34483 + 778a9fc commit cc7378d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.5.10

#### Fixed
Fixed opening of payment dialog on some devices
#### Changes
Tinkoff Pay payment form opens in a separate window now
#### Additions

## 2.5.9

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=2.5.9
VERSION_NAME=2.5.10
VERSION_CODE=15
GROUP=ru.tinkoff.acquiring

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ internal class PaymentActivity : TransparentActivity() {
private fun openTinkoffPayDeepLinkInBank(deepLink: String) {
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(deepLink)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
startActivityForResult(intent, TINKOFF_PAY_REQUEST_CODE)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ internal class BottomContainer @JvmOverloads constructor(
super.onLayout(changed, left, top, right, bottom)
val prevInitialPositionY = initialPositionY
initialPositionY = height - getChildHeight()
if (prevInitialPositionY != initialPositionY) {
if (prevInitialPositionY == 0 || prevInitialPositionY != initialPositionY) {
if (showInitAnimation) {
if (initialPositionY <= topPositionY) {
initialPositionY = statusBarHeight
Expand Down Expand Up @@ -389,7 +389,13 @@ internal class BottomContainer @JvmOverloads constructor(
}

private fun getChildHeight(): Int {
return getChildAt(0).height
var childHeight = 0
for (index in 0 until this.childCount) {
val child = this.getChildAt(index)
childHeight += child.height
}

return childHeight
}

private fun getPositionInParent(child: View?): IntArray {
Expand Down

0 comments on commit cc7378d

Please sign in to comment.