Skip to content

Commit 7e821ea

Browse files
committed
Update
1 parent e3cbe4d commit 7e821ea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/com/omarea/common/ui/BannerNotificationManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ object BannerNotificationManager {
128128

129129
when (req.position) {
130130
BannerPosition.TOP -> toast.setGravity(
131-
Gravity.TOP or Gravity.CENTER_HORIZONTAL, 0, (50 * density).toInt()
131+
Gravity.TOP or Gravity.CENTER_HORIZONTAL, 0, (60 * density).toInt()
132132
)
133133
BannerPosition.BOTTOM -> toast.setGravity(
134-
Gravity.BOTTOM or Gravity.CENTER_HORIZONTAL, 0, (70 * density).toInt()
134+
Gravity.BOTTOM or Gravity.CENTER_HORIZONTAL, 0, (80 * density).toInt()
135135
)
136136
}
137137
toast.show()

app/src/main/res/layout/banner_notification.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
1010
android:layout_width="match_parent"
1111
android:layout_height="wrap_content"
12-
android:paddingStart="16dp"
13-
android:paddingEnd="16dp">
12+
android:paddingStart="14dp"
13+
android:paddingEnd="14dp">
1414

1515
<LinearLayout
1616
android:id="@+id/banner_root"

0 commit comments

Comments
 (0)