[6.4.0]
[statusbar 做判断、taxi乘客屏加载失败]
This commit is contained in:
@@ -5,14 +5,11 @@ project.dependencies {
|
||||
|
||||
} else {
|
||||
if (isCurrentDriver("C1")) {
|
||||
println "och.gradle---Driver---C1"
|
||||
implementation project.project(':OCH:sweeper:driver')
|
||||
} else if (isCurrentDriver("B1")) {
|
||||
println "och.gradle---Driver---B1"
|
||||
implementation project.project(':OCH:shuttle:driver')
|
||||
implementation project.project(':OCH:bus:driver')
|
||||
} else if (isCurrentPassenger("B1")) {
|
||||
println "och.gradle---Passenger---B1"
|
||||
implementation project.project(':OCH:bus:passenger')
|
||||
implementation project.project(':OCH:shuttle:passenger')
|
||||
} else if (isCurrentDriver("M1")) {
|
||||
@@ -39,10 +36,12 @@ project.dependencies {
|
||||
}
|
||||
} else if (isCurrentPassenger("T1T2")) {
|
||||
println "och.gradle---Passenger---T1T2"
|
||||
if(isCurrentDriver("saas")){
|
||||
if(isCurrentPassenger("saas")){
|
||||
println "och.gradle---saasPassenger---T1T2"
|
||||
implementation project.project(':OCH:taxi:unmanned-passenger')
|
||||
}
|
||||
if(isCurrentDriver("mogo")){
|
||||
if(isCurrentPassenger("mogo")){
|
||||
println "och.gradle---mogoPassenger---T1T2"
|
||||
implementation project.project(':OCH:taxi:passenger')
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -167,7 +167,7 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
|
||||
}
|
||||
|
||||
private fun injectStatusBar() {
|
||||
activity?.let {
|
||||
activity?.let { it ->
|
||||
val decorView = it.window.decorView as? FrameLayout ?: return
|
||||
val contentView =
|
||||
(decorView.findViewById<View>(android.R.id.content) as? ViewGroup)?.getChildAt(0)
|
||||
@@ -184,6 +184,11 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
|
||||
)
|
||||
statusBarLP.topMargin = 0
|
||||
statusBarLP.gravity = Gravity.TOP
|
||||
statusBar?.let {view->
|
||||
if(view.isAttachedToWindow){
|
||||
return
|
||||
}
|
||||
}
|
||||
decorView.addView(statusBarView, statusBarLP)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||
@@ -15,9 +16,10 @@ android {
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles "consumer-rules.pro"
|
||||
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
arguments = [AROUTER_MODULE_NAME: "taxiunmanned"+project.getName()]
|
||||
kapt {
|
||||
useBuildCache = false
|
||||
arguments {
|
||||
arg("AROUTER_MODULE_NAME", "taxiunmanned"+project.getName())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,7 +53,7 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.androidxrecyclerview
|
||||
implementation rootProject.ext.dependencies.material
|
||||
implementation rootProject.ext.dependencies.flexbox
|
||||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||||
kapt rootProject.ext.dependencies.aroutercompiler
|
||||
implementation rootProject.ext.dependencies.rxandroid
|
||||
implementation rootProject.ext.dependencies.androidxconstraintlayout
|
||||
implementation rootProject.ext.dependencies.amapnavi3dmap
|
||||
|
||||
Reference in New Issue
Block a user