Commit 0ca752d3 by 徐健

Merge

parents 8817ed2c f56ff6ec
...@@ -13,6 +13,8 @@ import android.util.Log ...@@ -13,6 +13,8 @@ import android.util.Log
import com.alibaba.android.arouter.launcher.ARouter import com.alibaba.android.arouter.launcher.ARouter
import com.tbruyelle.rxpermissions2.RxPermissions import com.tbruyelle.rxpermissions2.RxPermissions
import com.umeng.analytics.MobclickAgent import com.umeng.analytics.MobclickAgent
import com.umeng.commonsdk.framework.UMModuleRegister.getAppContext
import com.ydl.audioim.YDLavManager
import com.ydl.component.music.MusicPlayActivity import com.ydl.component.music.MusicPlayActivity
import com.ydl.component.mvp.DemoContract import com.ydl.component.mvp.DemoContract
import com.ydl.component.mvp.DemoPresenter import com.ydl.component.mvp.DemoPresenter
...@@ -61,6 +63,9 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>( ...@@ -61,6 +63,9 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
} }
override fun initDataAndEvent() { override fun initDataAndEvent() {
YDLavManager.instances.init(this, "3387e9b251f3491e9221a9877e8f7830")
bindService() bindService()
reLoadData() reLoadData()
requestPermission() requestPermission()
...@@ -94,6 +99,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>( ...@@ -94,6 +99,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
startActivity(Intent(this, TestHomeActivity::class.java)) startActivity(Intent(this, TestHomeActivity::class.java))
} }
bt_to_confide.setOnClickListener { bt_to_confide.setOnClickListener {
YDLavManager.instances.login("1193016")
startActivity(Intent(this, ConfideHomeActivity::class.java)) startActivity(Intent(this, ConfideHomeActivity::class.java))
} }
bt_to_muse.setOnClickListener { bt_to_muse.setOnClickListener {
......
ext { ext {
kotlin_version = "1.3.21" kotlin_version = "1.3.21"
dev_mode = true dev_mode = false
ydl_app = [ ydl_app = [
appName : "心理咨询壹点灵", appName : "心理咨询壹点灵",
...@@ -42,13 +42,13 @@ ext { ...@@ -42,13 +42,13 @@ ext {
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.18", "m-confide" : "0.0.20",
"m-consultant" : "0.0.34", "m-consultant" : "0.0.34",
"m-course" : "0.0.17", "m-course" : "0.0.17",
"m-fm" : "0.0.15", "m-fm" : "0.0.15",
"m-muse" : "0.0.11", "m-muse" : "0.0.11",
"m-tests" : "0.0.10", "m-tests" : "0.0.10",
"m-user" : "0.0.30", "m-user" : "0.0.31",
//-------------- 业务模块 API 层 -------------- //-------------- 业务模块 API 层 --------------
"m-audioim-api" : "0.0.1", "m-audioim-api" : "0.0.1",
......
...@@ -12,11 +12,14 @@ class ConnectParamJava : BaseCommand { ...@@ -12,11 +12,14 @@ class ConnectParamJava : BaseCommand {
var id: String = "0" //倾诉id var id: String = "0" //倾诉id
var type: String = "1" //1 走AxB 2双呼 3声网 var type: String = "1" //1 走AxB 2双呼 3声网
var callType:Int? = null //
constructor() : super() constructor() : super()
constructor(id: String, type: String) : super() { constructor(id: String, type: String, callType: Int?) : super() {
this.id = id this.id = id
this.type = type this.type = type
this.callType = callType
} }
} }
...@@ -29,6 +29,7 @@ import com.ydl.ydlcommon.base.config.HttpConfig ...@@ -29,6 +29,7 @@ import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.router.IYDLRouterConstant import com.ydl.ydlcommon.router.IYDLRouterConstant
import com.ydl.ydlcommon.ui.LogoLoadingView import com.ydl.ydlcommon.ui.LogoLoadingView
import com.ydl.ydlcommon.utils.BuryPointUtils import com.ydl.ydlcommon.utils.BuryPointUtils
import com.ydl.ydlcommon.utils.DisplayUtils
import com.ydl.ydlcommon.utils.StatusBarUtils import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.ydl.ydlcommon.utils.remind.ToastHelper import com.ydl.ydlcommon.utils.remind.ToastHelper
...@@ -72,7 +73,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres ...@@ -72,7 +73,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override fun initDataAndEvent() { override fun initDataAndEvent() {
var statusBarHeight = StatusBarUtils.getStatusBarHeight(context); var statusBarHeight = StatusBarUtils.getStatusBarHeight(context);
rootView.setPadding(0,statusBarHeight,0,0) rootView.setPadding(0,statusBarHeight,0,0)
btn_back?.visibility = View.INVISIBLE btn_back.visibility = View.GONE
title_layout.setPadding(DisplayUtils.dp2px(context,15),0,0,0)
initViews() initViews()
initData() initData()
} }
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
tools:ignore="MissingDefaultResource"> tools:ignore="MissingDefaultResource">
<corners android:radius="16dp" /> <corners android:radius="90dp" />
<solid android:color="@color/platform_color_F7F7F7" /> <solid android:color="@color/platform_color_F7F7F7" />
</shape> </shape>
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"> android:orientation="vertical">
<include <include
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/platform_dp_15" android:layout_marginTop="@dimen/platform_dp_15"
android:padding="0.5dp"
android:background="@drawable/consultant_bg_radius_line_gray_05" android:background="@drawable/consultant_bg_radius_line_gray_05"
android:orientation="vertical"> android:orientation="vertical">
<android.support.v7.widget.CardView <android.support.v7.widget.CardView
...@@ -39,9 +38,7 @@ ...@@ -39,9 +38,7 @@
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:layout_alignBottom="@+id/cvHead" android:layout_alignBottom="@+id/cvHead"
app:srcCompat="@drawable/consultant_online_yue" app:srcCompat="@drawable/consultant_online_yue"
android:layout_marginLeft="@dimen/platform_dp_2"
tools:visibility="visible" tools:visibility="visible"
android:layout_marginBottom="@dimen/platform_dp_05"
android:visibility="gone"/> android:visibility="gone"/>
...@@ -53,9 +50,7 @@ ...@@ -53,9 +50,7 @@
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:layout_alignBottom="@+id/cvHead" android:layout_alignBottom="@+id/cvHead"
app:srcCompat="@drawable/consultant_online_server" app:srcCompat="@drawable/consultant_online_server"
android:layout_marginLeft="@dimen/platform_dp_2"
tools:visibility="visible" tools:visibility="visible"
android:layout_marginBottom="@dimen/platform_dp_05"
android:visibility="gone"/> android:visibility="gone"/>
...@@ -79,7 +74,6 @@ ...@@ -79,7 +74,6 @@
android:layout_toRightOf="@+id/tvName" android:layout_toRightOf="@+id/tvName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/platform_dp_2"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:gravity="center_vertical" android:gravity="center_vertical"
...@@ -93,34 +87,32 @@ ...@@ -93,34 +87,32 @@
android:layout_width="42dp" android:layout_width="42dp"
android:layout_height="12dp" android:layout_height="12dp"
android:layout_marginStart="@dimen/platform_dp_4" android:layout_marginStart="@dimen/platform_dp_4"
android:layout_marginRight="4dp"
android:visibility="gone"/> android:visibility="gone"/>
<!--公益图标--> <!--公益图标-->
<ImageView <ImageView
android:id="@+id/imgServiceFree" android:id="@+id/imgServiceFree"
android:layout_width="26dp" android:layout_width="26dp"
android:layout_height="@dimen/platform_dp_12" android:layout_height="@dimen/platform_dp_12"
android:layout_marginLeft="@dimen/platform_dp_4" android:layout_marginRight="4dp"
android:scaleType="centerCrop" android:scaleType="centerCrop"
tools:background="@drawable/consultant_service_free" tools:background="@drawable/consultant_service_free" />
android:layout_marginStart="@dimen/platform_dp_4" />
<!--新驻图标--> <!--新驻图标-->
<ImageView <ImageView
android:id="@+id/imgNewEnter" android:id="@+id/imgNewEnter"
android:layout_width="26dp" android:layout_width="26dp"
android:layout_height="@dimen/platform_dp_12" android:layout_height="@dimen/platform_dp_12"
android:layout_marginLeft="@dimen/platform_dp_4" android:layout_marginRight="4dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
tools:background="@drawable/consultant_new_enter" tools:background="@drawable/consultant_new_enter" />
android:layout_marginStart="@dimen/platform_dp_4" />
<!--优质图标--> <!--优质图标-->
<ImageView <ImageView
android:id="@+id/imgAbilityLevel" android:id="@+id/imgAbilityLevel"
android:layout_width="26dp" android:layout_width="26dp"
android:layout_height="@dimen/platform_dp_12" android:layout_height="@dimen/platform_dp_12"
android:layout_marginLeft="@dimen/platform_dp_4" android:layout_marginRight="4dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
tools:background="@drawable/consultant_expert_search_shixi" tools:background="@drawable/consultant_expert_search_shixi"
android:layout_marginStart="@dimen/platform_dp_4"
android:visibility="gone"/> android:visibility="gone"/>
</LinearLayout> </LinearLayout>
......
...@@ -12,76 +12,79 @@ ...@@ -12,76 +12,79 @@
android:id="@+id/scroll" android:id="@+id/scroll"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!--筛选框-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/platform_white"
android:orientation="horizontal">
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvSubject"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_theme"/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvArea"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_area"/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvSort"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_sort"/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvFilter"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_filter"/>
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/lin_filter2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10dp" android:orientation="vertical">
android:paddingBottom="10dp" <!--筛选框-->
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/platform_white"
android:orientation="horizontal">
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvSubject"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_theme"/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvArea"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_area"/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvSort"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_sort"/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id="@+id/tvFilter"
style="@style/consultant_FilterTextViewStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:width="0dp"
android:textColor="@color/platform_color_242424"
android:drawableEnd="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight="@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text="@string/platform_filter"/>
</LinearLayout>
<LinearLayout
android:id="@+id/lin_filter2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingBottom="10dp"
android:orientation="horizontal">
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="6dp"
android:background="@drawable/consult_fillter_bg"/>
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/platform_line"/>
</LinearLayout>
</com.yidianling.consultant.ui.view.DisInterceptNestedScrollView> </com.yidianling.consultant.ui.view.DisInterceptNestedScrollView>
...@@ -93,7 +96,7 @@ ...@@ -93,7 +96,7 @@
android:id="@+id/viewSep2" android:id="@+id/viewSep2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:background="@color/platform_divide_color" android:background="@color/transparent"
/> />
<android.support.v4.widget.SwipeRefreshLayout <android.support.v4.widget.SwipeRefreshLayout
...@@ -170,7 +173,6 @@ ...@@ -170,7 +173,6 @@
android:id="@+id/viewDim" android:id="@+id/viewDim"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@id/viewSep2"
android:background="#40000000" android:background="#40000000"
android:visibility="invisible"/> android:visibility="invisible"/>
</RelativeLayout> </RelativeLayout>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:orientation="horizontal" android:orientation="horizontal"
android:background="@color/white"
app:layout_collapseMode="pin"> app:layout_collapseMode="pin">
...@@ -29,9 +30,10 @@ ...@@ -29,9 +30,10 @@
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="12dp"
android:layout_height="match_parent" android:layout_height="12dp"
android:layout_marginLeft="12dp" android:layout_marginLeft="12dp"
android:layout_gravity="center_vertical"
android:src="@drawable/consultant_icon_search_zixun" /> android:src="@drawable/consultant_icon_search_zixun" />
<TextView <TextView
......
...@@ -19,6 +19,9 @@ import com.yidianling.common.tools.ToastUtil ...@@ -19,6 +19,9 @@ import com.yidianling.common.tools.ToastUtil
import com.yidianling.user.R import com.yidianling.user.R
import com.yidianling.user.constants.UserBIConstants import com.yidianling.user.constants.UserBIConstants
import com.yidianling.user.route.UserIn import com.yidianling.user.route.UserIn
import com.yidianling.user.safePrivate.FingerPrintCheckActivity
import com.yidianling.user.safePrivate.FingerPrintUtil
import com.yidianling.user.safePrivate.HandUnlockCheckActivity
import com.yidianling.user.ui.login.contract.IInputPassWordContract import com.yidianling.user.ui.login.contract.IInputPassWordContract
import com.yidianling.user.ui.login.presenter.InputPassWordPresenterImpl import com.yidianling.user.ui.login.presenter.InputPassWordPresenterImpl
import kotlinx.android.synthetic.main.user_activity_input_password.* import kotlinx.android.synthetic.main.user_activity_input_password.*
...@@ -282,7 +285,12 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput ...@@ -282,7 +285,12 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
var flag = 0 var flag = 0
//判断stack中activity是否属于登录相关的三个页面 //判断stack中activity是否属于登录相关的三个页面
for (activity in ActivityManager.getInstance().getActivitys()) { for (activity in ActivityManager.getInstance().getActivitys()) {
if (activity is RegisterAndLoginActivity || activity is VerificationCodeActivity || activity is InputPassWordActivity) { if (activity is RegisterAndLoginActivity
|| activity is VerificationCodeActivity
|| activity is InputPassWordActivity
|| activity is FingerPrintCheckActivity
|| activity is HandUnlockCheckActivity
) {
flag++ flag++
} }
} }
...@@ -291,6 +299,9 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput ...@@ -291,6 +299,9 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java) ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java)
ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java) ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java)
ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java) ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java)
ActivityManager.getInstance().finishActivity(FingerPrintCheckActivity::class.java)
ActivityManager.getInstance().finishActivity(HandUnlockCheckActivity::class.java)
FingerPrintUtil.instance().setCurrentUnLockTime(System.currentTimeMillis())
} else { } else {
ActivityManager.finishAll() ActivityManager.finishAll()
startActivity(UserIn.mainIntent(this)) startActivity(UserIn.mainIntent(this))
......
...@@ -44,6 +44,9 @@ import com.yidianling.user.http.request.BindPhoneJavaParam ...@@ -44,6 +44,9 @@ import com.yidianling.user.http.request.BindPhoneJavaParam
import com.yidianling.user.http.request.PhoneLoginAutoParam import com.yidianling.user.http.request.PhoneLoginAutoParam
import com.yidianling.user.http.response.ChcekPhoneResponeBean import com.yidianling.user.http.response.ChcekPhoneResponeBean
import com.yidianling.user.route.UserIn import com.yidianling.user.route.UserIn
import com.yidianling.user.safePrivate.FingerPrintCheckActivity
import com.yidianling.user.safePrivate.FingerPrintUtil
import com.yidianling.user.safePrivate.HandUnlockCheckActivity
import com.yidianling.user.ui.CountryListActivity import com.yidianling.user.ui.CountryListActivity
import com.yidianling.user.ui.login.contract.ILoginContract import com.yidianling.user.ui.login.contract.ILoginContract
import com.yidianling.user.ui.login.presenter.LoginPresenterImpl import com.yidianling.user.ui.login.presenter.LoginPresenterImpl
...@@ -450,9 +453,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont ...@@ -450,9 +453,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
tv_reg_title.text = "手机号绑定" tv_reg_title.text = "手机号绑定"
tv_protocol.visibility = View.GONE tv_protocol.visibility = View.GONE
} else { } else {
ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java) finishPrePage()
ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java)
ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java)
if (isFromGuide) { if (isFromGuide) {
startActivity(UserIn.mainIntent(this)) startActivity(UserIn.mainIntent(this))
} }
...@@ -527,9 +528,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont ...@@ -527,9 +528,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
UserHelper.getUserInfo()!!.userInfo!!.bind_phone = 1 UserHelper.getUserInfo()!!.userInfo!!.bind_phone = 1
UserHelper.getUserInfo()!!.userInfo!!.phone = userPhoneNumber UserHelper.getUserInfo()!!.userInfo!!.phone = userPhoneNumber
ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java) finishPrePage()
ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java)
ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java)
} }
/** /**
...@@ -559,13 +558,22 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont ...@@ -559,13 +558,22 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
ActivityManager.finishAll() ActivityManager.finishAll()
startActivity(UserIn.mainIntent(this)) startActivity(UserIn.mainIntent(this))
} else { } else {
ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java) finishPrePage()
ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java)
ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java)
} }
}, 3000) }, 3000)
} }
private fun finishPrePage() {
ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java)
ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java)
ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java)
//关闭手势解锁页面与指纹解锁页面
ActivityManager.getInstance().finishActivity(FingerPrintCheckActivity::class.java)
ActivityManager.getInstance().finishActivity(HandUnlockCheckActivity::class.java)
FingerPrintUtil.instance().setCurrentUnLockTime(System.currentTimeMillis())
}
override fun onBackPressed() { override fun onBackPressed() {
//当前stack只有一个activity,说明被挤掉线的 //当前stack只有一个activity,说明被挤掉线的
......
...@@ -10,10 +10,8 @@ import android.view.View ...@@ -10,10 +10,8 @@ import android.view.View
import com.ydl.ydlcommon.base.BaseMvpActivity import com.ydl.ydlcommon.base.BaseMvpActivity
import com.ydl.ydlcommon.utils.ActivityManager import com.ydl.ydlcommon.utils.ActivityManager
import com.ydl.ydlcommon.utils.StatusBarUtils import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.YDLCacheUtils import com.ydl.ydlcommon.utils.YDLCacheUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.ydl.ydlcommon.utils.actionutil.BIConstants
import com.yidianling.common.tools.RxKeyboardTool import com.yidianling.common.tools.RxKeyboardTool
import com.yidianling.common.tools.ToastUtil import com.yidianling.common.tools.ToastUtil
import com.yidianling.user.R import com.yidianling.user.R
...@@ -21,6 +19,9 @@ import com.yidianling.user.UserHelper ...@@ -21,6 +19,9 @@ import com.yidianling.user.UserHelper
import com.yidianling.user.constants.UserBIConstants import com.yidianling.user.constants.UserBIConstants
import com.yidianling.user.http.request.BindPhoneJavaParam import com.yidianling.user.http.request.BindPhoneJavaParam
import com.yidianling.user.route.UserIn import com.yidianling.user.route.UserIn
import com.yidianling.user.safePrivate.FingerPrintCheckActivity
import com.yidianling.user.safePrivate.FingerPrintUtil
import com.yidianling.user.safePrivate.HandUnlockCheckActivity
import com.yidianling.user.ui.login.contract.IVerificationCodeContract import com.yidianling.user.ui.login.contract.IVerificationCodeContract
import com.yidianling.user.ui.login.presenter.VerificationCodePresenterImpl import com.yidianling.user.ui.login.presenter.VerificationCodePresenterImpl
import io.reactivex.Observable import io.reactivex.Observable
...@@ -280,7 +281,12 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View, ...@@ -280,7 +281,12 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View,
var flag = 0 var flag = 0
//判断stack中activity是否属于登录相关的三个页面 //判断stack中activity是否属于登录相关的三个页面
for (activity in ActivityManager.getInstance().getActivitys()) { for (activity in ActivityManager.getInstance().getActivitys()) {
if (activity is RegisterAndLoginActivity || activity is VerificationCodeActivity || activity is InputPassWordActivity) { if (activity is RegisterAndLoginActivity
|| activity is VerificationCodeActivity
|| activity is InputPassWordActivity
|| activity is FingerPrintCheckActivity
|| activity is HandUnlockCheckActivity
) {
flag++ flag++
} }
} }
...@@ -289,6 +295,9 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View, ...@@ -289,6 +295,9 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View,
ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java) ActivityManager.getInstance().finishActivity(VerificationCodeActivity::class.java)
ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java) ActivityManager.getInstance().finishActivity(InputPassWordActivity::class.java)
ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java) ActivityManager.getInstance().finishActivity(RegisterAndLoginActivity::class.java)
ActivityManager.getInstance().finishActivity(FingerPrintCheckActivity::class.java)
ActivityManager.getInstance().finishActivity(HandUnlockCheckActivity::class.java)
FingerPrintUtil.instance().setCurrentUnLockTime(System.currentTimeMillis())
} else { } else {
ActivityManager.finishAll() ActivityManager.finishAll()
startActivity(UserIn.mainIntent(this)) startActivity(UserIn.mainIntent(this))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment