个人信息与权限 页面调整 增加跳转URL
This commit is contained in:
@@ -5,12 +5,16 @@ import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import com.yizhuan.erban.BuildConfig
|
||||
import com.yizhuan.erban.R
|
||||
import com.yizhuan.erban.base.BaseActivity
|
||||
import com.yizhuan.erban.databinding.ActivityPermissionGuideBinding
|
||||
import com.yizhuan.erban.ui.webview.CommonWebViewActivity
|
||||
import com.yizhuan.erban.utils.PermissionUtil
|
||||
|
||||
class PermissionGuideActivity : BaseActivity(), View.OnClickListener {
|
||||
private val baseUrl =
|
||||
if (BuildConfig.DEBUG) "http://api.uat.zhongjialx.com" else "https://api.zhongjialx.com"
|
||||
|
||||
companion object {
|
||||
fun start(context: Context) {
|
||||
@@ -30,9 +34,23 @@ class PermissionGuideActivity : BaseActivity(), View.OnClickListener {
|
||||
override fun onClick(v: View?) {
|
||||
when (v?.id) {
|
||||
R.id.tv_system_permission -> GrantedPermissionsActivity.start(this)
|
||||
//R.id.tv_privacy_guide -> CommonWebViewActivity.start()
|
||||
// R.id.tv_sdk_permission -> CommonWebViewActivity.start()
|
||||
// R.id.tv_device_permission -> CommonWebViewActivity.start()
|
||||
R.id.tv_jump_setting -> PermissionUtil.instance.jumpToSetting(this)
|
||||
R.id.tv_privacy_guide -> CommonWebViewActivity.start(
|
||||
this,
|
||||
"$baseUrl/accompany/modules/rule/privacy-wap.html"
|
||||
)
|
||||
R.id.tv_sdk_permission -> CommonWebViewActivity.start(
|
||||
this,
|
||||
"$baseUrl/accompany/modules/rule/sdk.html"
|
||||
)
|
||||
R.id.tv_device_permission -> CommonWebViewActivity.start(
|
||||
this,
|
||||
"$baseUrl/accompany/modules/rule/permissions.html"
|
||||
)
|
||||
R.id.tv_personal_permission -> CommonWebViewActivity.start(
|
||||
this,
|
||||
"$baseUrl/accompany/modules/rule/personal-info.html"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
@@ -34,8 +34,8 @@
|
||||
|
||||
>
|
||||
<View
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="1dp"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/color_grey_999999"
|
||||
/>
|
||||
@@ -48,8 +48,8 @@
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
<View
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="1dp"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/color_grey_999999"
|
||||
|
@@ -43,6 +43,13 @@
|
||||
android:text="第三方SDK目录"
|
||||
android:onClick="@{click}"
|
||||
tools:ignore="MissingConstraints" />
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
app:layout_constraintTop_toBottomOf="@id/title_bar"
|
||||
android:id="@+id/tv_personal_permission"
|
||||
style="@style/permission_text_style"
|
||||
android:text="个人信息收集清单"
|
||||
android:onClick="@{click}"
|
||||
tools:ignore="MissingConstraints" />
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
app:layout_constraintTop_toBottomOf="@id/title_bar"
|
||||
android:id="@+id/tv_device_permission"
|
||||
@@ -88,8 +95,8 @@
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="1dp"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/color_grey_999999"
|
||||
app:layout_constraintRight_toLeftOf="@id/tv_tip"
|
||||
@@ -101,8 +108,8 @@
|
||||
<View
|
||||
app:layout_constraintTop_toTopOf="@id/tv_tip"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tv_tip"
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="1dp"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="0.5dp"
|
||||
app:layout_constraintLeft_toRightOf="@id/tv_tip"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_gravity="center_vertical"
|
||||
|
Reference in New Issue
Block a user