File tree Expand file tree Collapse file tree
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 .TOP ,
62+ position : BannerPosition = BannerPosition .BOTTOM ,
6363 icon : String? = null,
6464 onNoActivity : (() -> Unit )? = null
6565 ) {
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ class BannerReceiver : BroadcastReceiver() {
4040 else -> BannerType .INFO
4141 }
4242 val position = when (intent.getStringExtra(" position" )?.lowercase()) {
43- " bottom " -> BannerPosition .BOTTOM
44- else -> BannerPosition .TOP
43+ " top " -> BannerPosition .TOP
44+ else -> BannerPosition .BOTTOM
4545 }
4646 val icon = intent.getStringExtra(" icon" )
4747
Original file line number Diff line number Diff line change 77 android : gravity =" center_vertical"
88 android : background =" @drawable/banner_bg"
99 android : elevation =" 8dp"
10+ android : layout_marginStart =" 16dp"
11+ android : layout_marginEnd =" 16dp"
1012 android : paddingStart =" 16dp"
1113 android : paddingEnd =" 16dp"
1214 android : paddingTop =" 14dp"
You can’t perform that action at this time.
0 commit comments