[6.0.0]
[charter] [包车乘客屏业务吐司定制]
This commit is contained in:
@@ -32,6 +32,7 @@ object AppIdentityModeUtils {
|
||||
// 身份
|
||||
private const val DRIVER = "Driver"
|
||||
private const val PASSENGER = "Passenger"
|
||||
|
||||
// 业务
|
||||
private const val TAXI = "Taxi"
|
||||
private const val BUS = "Bus"
|
||||
@@ -45,7 +46,6 @@ object AppIdentityModeUtils {
|
||||
private const val JL = "JL"
|
||||
|
||||
|
||||
|
||||
private fun getInfo(appIdentityMode: String): Array<String> {
|
||||
val split = appIdentityMode.split("_")
|
||||
if (split.size == 3) {
|
||||
@@ -56,7 +56,7 @@ object AppIdentityModeUtils {
|
||||
|
||||
fun getBuildCarType(appIdentityMode: String): String {
|
||||
val (_, _, carType) = getInfo(appIdentityMode)
|
||||
if(carType.isNotEmpty()){
|
||||
if (carType.isNotEmpty()) {
|
||||
return carType
|
||||
}
|
||||
return ""
|
||||
@@ -121,6 +121,7 @@ object AppIdentityModeUtils {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否是 接驳车(这里不细分具体是:司机、乘客等类型)
|
||||
*
|
||||
@@ -131,6 +132,7 @@ object AppIdentityModeUtils {
|
||||
fun isShuttlePassenger(appIdentityMode: String): Boolean {
|
||||
return isShuttle(appIdentityMode) && isPassenger(appIdentityMode)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun isM2(appIdentityMode: String): Boolean {
|
||||
val (_, _, model) = getInfo(appIdentityMode)
|
||||
@@ -241,6 +243,12 @@ object AppIdentityModeUtils {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun isCharterPassenger(appIdentityMode: String): Boolean {
|
||||
return isCharter(appIdentityMode) && isPassenger(appIdentityMode)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun isM1(appIdentityMode: String): Boolean {
|
||||
val (_, _, model) = getInfo(appIdentityMode)
|
||||
@@ -262,8 +270,8 @@ object AppIdentityModeUtils {
|
||||
}
|
||||
}
|
||||
|
||||
enum class Product{
|
||||
BUS,TAXI,SWEEPER,SHUTTLE,CHARTER
|
||||
enum class Product {
|
||||
BUS, TAXI, SWEEPER, SHUTTLE, CHARTER
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -464,6 +464,13 @@ public final class ToastUtils {
|
||||
|
||||
}
|
||||
}
|
||||
public static void showShortWithmarker(@Nullable final View view,@Nullable final ToastUtils marker) {
|
||||
if(view!=null){
|
||||
show(view, Toast.LENGTH_SHORT, marker);
|
||||
}else {
|
||||
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Show the toast for a short period of time.
|
||||
*
|
||||
@@ -471,6 +478,9 @@ public final class ToastUtils {
|
||||
public static void showLong(@Nullable final View view) {
|
||||
show(view, Toast.LENGTH_LONG, DEFAULT_MAKER);
|
||||
}
|
||||
public static void showLongWithmarker(@Nullable final View view,@Nullable final ToastUtils marker) {
|
||||
show(view, Toast.LENGTH_LONG, marker);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user