File tree Expand file tree Collapse file tree
app/src/main/java/com/omarea/common/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ object BannerNotificationManager {
5959 title : String? = null,
6060 message : String ,
6161 type : BannerType = BannerType .INFO ,
62- position : BannerPosition = BannerPosition .BOTTOM ,
62+ position : BannerPosition = BannerPosition .TOP ,
6363 icon : String? = null,
6464 onNoActivity : (() -> Unit )? = null
6565 ) {
@@ -128,10 +128,10 @@ object BannerNotificationManager {
128128
129129 when (req.position) {
130130 BannerPosition .TOP -> toast.setGravity(
131- Gravity .TOP or Gravity .CENTER_HORIZONTAL , 0 , (40 * density).toInt()
131+ Gravity .TOP or Gravity .CENTER_HORIZONTAL , 0 , (50 * density).toInt()
132132 )
133133 BannerPosition .BOTTOM -> toast.setGravity(
134- // Gravity.BOTTOM or Gravity.CENTER_HORIZONTAL, 0, (50 * density).toInt()
134+ Gravity .BOTTOM or Gravity .CENTER_HORIZONTAL , 0 , (50 * density).toInt()
135135 )
136136 }
137137 toast.show()
You can’t perform that action at this time.
0 commit comments