Merge branch 'dev_robotaxi-d_240401_6.4.0_6.4.2temp' into dev_robotaxi-d_240516_6.4.2
This commit is contained in:
@@ -117,9 +117,11 @@ class LoginFragment : MvpFragment<LoginFragment?, LoginPresenter?>(), ILoginView
|
||||
}
|
||||
}
|
||||
biz_actv_login_show_sn.text = SharedPrefsMgr.getInstance().sn
|
||||
biz_actv_login_show_sn.setOnLongClickListener {
|
||||
bv_switch_business.selectBusniess()
|
||||
true
|
||||
if(BuildConfig.DEBUG) {
|
||||
biz_actv_login_show_sn.setOnLongClickListener {
|
||||
bv_switch_business.selectBusniess()
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,11 +63,11 @@ class LoginPassengerFragment : MvpFragment<LoginPassengerFragment?, LoginPasseng
|
||||
|
||||
actv_app_version?.text = FlavorUtils.getInfo()
|
||||
|
||||
actv_app_version?.setOnLongClickListener {
|
||||
if(BuildConfig.DEBUG){
|
||||
if(BuildConfig.DEBUG) {
|
||||
actv_app_version?.setOnLongClickListener {
|
||||
bv_switch_business?.selectBusniess()
|
||||
true
|
||||
}
|
||||
true
|
||||
}
|
||||
|
||||
CallerLogger.d(TAG, "init")
|
||||
|
||||
@@ -7,6 +7,7 @@ import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.lifecycle.ViewModelProvider
|
||||
import androidx.lifecycle.findViewTreeViewModelStoreOwner
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView
|
||||
import com.mogo.eagle.core.utilcode.kotlin.onClick
|
||||
import com.mogo.och.biz.R
|
||||
import com.mogo.och.common.module.biz.login.BusinessEnum
|
||||
@@ -15,6 +16,7 @@ import kotlinx.android.synthetic.main.biz_login_business_view.view.actv_business
|
||||
import kotlinx.android.synthetic.main.biz_login_business_view.view.actv_business_charter
|
||||
import kotlinx.android.synthetic.main.biz_login_business_view.view.actv_business_shuttle
|
||||
import kotlinx.android.synthetic.main.biz_login_business_view.view.actv_business_taxi
|
||||
import kotlinx.android.synthetic.main.biz_login_business_view.view.actv_debugview
|
||||
|
||||
|
||||
class BusinessView : ConstraintLayout, BusinessViewModel.IErrorInfoViewCallback {
|
||||
@@ -48,6 +50,7 @@ class BusinessView : ConstraintLayout, BusinessViewModel.IErrorInfoViewCallback
|
||||
actv_business_bus.onClick { swtichBusiness(BusinessEnum.Bus) }
|
||||
actv_business_taxi.onClick { swtichBusiness(BusinessEnum.Taxi) }
|
||||
actv_business_charter.onClick { swtichBusiness(BusinessEnum.Charter) }
|
||||
actv_debugview.onClick { ToggleDebugView.toggleDebugView.toggle(context) }
|
||||
}
|
||||
|
||||
private fun swtichBusiness(businessEnum: BusinessEnum){
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="@dimen/dp_200"
|
||||
android:layout_height="@dimen/dp_300"
|
||||
android:layout_height="@dimen/dp_400"
|
||||
android:background="@drawable/biz_login_error_info">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
@@ -57,10 +57,23 @@
|
||||
android:gravity="center"
|
||||
android:text="出租车模式"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/actv_debugview"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/actv_business_shuttle" />
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/actv_debugview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="@dimen/dp_20"
|
||||
android:paddingBottom="@dimen/dp_20"
|
||||
android:gravity="center"
|
||||
android:text="调试页面"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/actv_business_taxi" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user