We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13dec5b commit 9a8e0d8Copy full SHA for 9a8e0d8
lib/src/main/java/com/example/lib/Deck.kt
@@ -55,7 +55,7 @@ class Deck : ViewPager {
55
when {
56
percentage == 0 -> initProperties(context, 0f)
57
percentage < 0 -> throw IllegalArgumentException("Percentage can't be lower than 0")
58
- percentage > 100 -> throw IllegalArgumentException("Percentage can't be higher than 100")
+ percentage >= 50 -> throw IllegalArgumentException("Your layout will not visible if the percentage equals or higher than 50")
59
else -> {
60
val metrics = DisplayMetrics()
61
(context as Activity).windowManager.defaultDisplay.getMetrics(metrics)
0 commit comments