Skip to content

Commit

Permalink
Merge pull request #225 from rezaiyan/bugfix/padding-of-bottom-alerter
Browse files Browse the repository at this point in the history
Left and right padding is set to the background layout when gravity is BOTTOM
  • Loading branch information
kpmmmurphy committed Jun 7, 2020
2 parents 47cb533 + 62354d7 commit 951e0db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit 951e0db

Please sign in to comment.