Commit 059db176 by konghaorui

修改测评频道页返回按钮显示逻辑

parent ace085a8
......@@ -51,7 +51,7 @@ ext {
"m-dynamic" : "0.0.7.3",
"m-muse" : "0.0.28.8",
"m-tests" : "0.0.23.8",
"m-tests" : "0.0.23.9",
"m-course" : "0.0.41.9",
//-------------- 业务模块 API 层 --------------
......
......@@ -9,7 +9,6 @@ import com.ydl.ydl_router.manager.YDLRouterManager
import com.ydl.ydl_router.manager.YDLRouterParams
import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.router.IYDLRouterConstant
import com.ydl.ydlcommon.utils.LogUtil
import com.yidianling.tests.list.view.TestCategoryListActivity
import com.yidianling.tests.router.TestsIn
import com.yidianling.tests.search.TestSearchActivity
......@@ -38,13 +37,16 @@ class TestPlugin : MethodChannel.MethodCallHandler {
const val TEST_LIST_ITEM_CLICK = "testListItemClick" // 测评列表点击
const val LOOK_ALL_TEST = "lookAllTest" // 查看全部测评
const val IS_HIDE_LEFT_BACK = "hideLeftBackLL" // 是否隐藏标题左侧布局
public var testDelegate:TestPluginDelegate?=null
var isHideLeftBack = false // 是否隐藏标题左侧布局
fun register(activity: FlutterActivity) {
isHideLeftBack = false
MethodChannel(activity.flutterView, CHANNEL).setMethodCallHandler(TestPlugin(activity))
}
fun register(fragment: BaseFlutterFragment, flutterView: FlutterView) {
isHideLeftBack = true
MethodChannel(flutterView, CHANNEL).setMethodCallHandler(TestPlugin(fragment.activity))
}
}
......@@ -100,12 +102,7 @@ class TestPlugin : MethodChannel.MethodCallHandler {
}
}
IS_HIDE_LEFT_BACK -> {
var hideBack = false
if (testDelegate!=null){
hideBack = testDelegate?.getHideBack()?:false
}
LogUtil.i("hideBack:$hideBack")
result.success(hideBack)
result.success(isHideLeftBack)
}
}
}
......
......@@ -17,7 +17,7 @@
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/platform_white"
app:pa_left_start_icon="@drawable/user_nav_close_green"
app:pa_left_start_icon="@drawable/platform_common_back"
app:pa_title_text="登录验证"/>
<TextView
......
......@@ -12,7 +12,7 @@
android:layout_height="50dp"
app:pa_title_text="开启指纹解锁"
android:background="@color/platform_white"
app:pa_left_start_icon="@drawable/user_nav_close_green">
app:pa_left_start_icon="@drawable/platform_common_back">
</com.ydl.ydlcommon.view.TitleBar>
<TextView
......
......@@ -12,7 +12,7 @@
android:layout_width="match_parent"
android:layout_height="50dp"
app:pa_title_text="设置手势解锁"
app:pa_left_start_icon="@drawable/user_nav_close_green"
app:pa_left_start_icon="@drawable/platform_common_back"
app:pa_right_text="重设">
</com.ydl.ydlcommon.view.TitleBar>
......
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