Skip to content

Commit 5d51804

Browse files
committed
Fixed payment options not showing anything if in a single project context
1 parent fb67198 commit 5d51804

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.51.1]
5+
6+
### Fixed
7+
- Fixed payment options not showing anything if in a single project context
8+
49
## [0.51.0]
510

611
### Changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ allprojects {
3131
}
3232

3333
project.ext {
34-
sdkVersion='0.51.0'
34+
sdkVersion='0.51.1'
3535
versionCode=1
3636

3737
compileSdkVersion=31

ui/src/main/java/io/snabble/sdk/ui/payment/PaymentOptionsView.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ open class PaymentOptionsView @JvmOverloads constructor(
120120
}
121121

122122
val adapterList = ArrayList<Entry>()
123-
124-
if (projectList.size > 1) {
125-
adapterList.addAll(projectList)
126-
}
123+
adapterList.addAll(projectList)
127124

128125
return adapterList
129126
}

0 commit comments

Comments
 (0)