升级Android sdk版本

This commit is contained in:
董宏宇
2021-09-03 12:02:04 +08:00
parent 294c6d8054
commit 98f6fe9422
7 changed files with 98 additions and 99 deletions

View File

@@ -53,7 +53,7 @@ class MoGoWarningFragment : MvpFragment<MoGoWarningContract.View?, WaringPresent
activity?.let {
val notificationView = V2XNotificationView(activity)
val notificationView = V2XNotificationView(it)
notificationView.setWarningIcon(WarningTypeEnum.getWarningIcon(v2xType))
notificationView.setWarningContent(

View File

@@ -14,7 +14,7 @@ import kotlinx.android.synthetic.main.view_traffic_light_vr.view.*
* 红绿灯控件
*/
class TrafficLightView @JvmOverloads constructor(
context: Context?,
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr) {

View File

@@ -16,7 +16,7 @@ import kotlinx.android.synthetic.main.notification_v2x_msg_vr.view.*
*@date 2021/8/6 12:25 下午
*/
class V2XNotificationView @JvmOverloads constructor(
context: Context?,
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr) {