Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left and right padding is set to the background layout when gravity is BOTTOM #225

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

## 5.1.3 - 06/06/2020
* Bug Fixes

## 5.1.2 - 16/02/2020
* Added support for rightIcon.

Expand Down Expand Up @@ -67,7 +70,7 @@ All notable changes to this project will be documented in this file.
* Added isShowing method
* Added additional icon setting methods
* Added styling methods
* added progress bar
* Added progress bar

## 1.0.9 - 27/06/2017
* Added Swipe to Dismiss
Expand Down
2 changes: 1 addition & 1 deletion alerter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apply from: rootProject.file('quality.gradle')

final String GROUP_ID = "com.tapadoo.android"

final String VERSION = "5.1.2"
final String VERSION = "5.1.3"

final String DESCRIPTION = "An Android Alerting Library"
final String GITHUB_URL = "https://github.com/Tapadoo/Alerter"
Expand Down
4 changes: 2 additions & 2 deletions alerter/src/main/java/com/tapadoo/alerter/Alert.kt
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class Alert @JvmOverloads constructor(context: Context,

if (layoutGravity != Gravity.TOP) {
setPadding(
0, getDimenPixelSize(R.dimen.alerter_padding_default),
0, getDimenPixelSize(R.dimen.alerter_alert_padding)
paddingLeft, getDimenPixelSize(R.dimen.alerter_padding_default),
paddingRight, getDimenPixelSize(R.dimen.alerter_alert_padding)
)
}
}
Expand Down