Commit 5e59ffe2 by 霍志良

Merge remote-tracking branch 'origin/4.1.64' into 4.1.64

parents e1de6099 cd9bf680
...@@ -84,6 +84,7 @@ object OneKeyLoginHelp { ...@@ -84,6 +84,7 @@ object OneKeyLoginHelp {
// 获取渠道 // 获取渠道
val channel = WalleChannelReader.getChannel(activity) val channel = WalleChannelReader.getChannel(activity)
checkBoxHidden = !(channel == "huawei" || channel == "vivo") checkBoxHidden = !(channel == "huawei" || channel == "vivo")
LogUtil.e("checkBoxHidde:$checkBoxHidden")
} }
/** /**
...@@ -283,6 +284,9 @@ object OneKeyLoginHelp { ...@@ -283,6 +284,9 @@ object OneKeyLoginHelp {
phoneNumberAuthHelper.removeAuthRegisterViewConfig() phoneNumberAuthHelper.removeAuthRegisterViewConfig()
val dialogHeight = RxImageTool.px2dp((RxDeviceTool.getScreenHeight(mActivity) * 0.45f)) val dialogHeight = RxImageTool.px2dp((RxDeviceTool.getScreenHeight(mActivity) * 0.45f))
//sdk默认控件的区域是marginTop50dp
val designHeight = dialogHeight - 50
val unit: Int = designHeight / 10
phoneNumberAuthHelper.setAuthUIConfig( phoneNumberAuthHelper.setAuthUIConfig(
AuthUIConfig.Builder() AuthUIConfig.Builder()
.setStatusBarColor(Color.TRANSPARENT) .setStatusBarColor(Color.TRANSPARENT)
...@@ -298,17 +302,17 @@ object OneKeyLoginHelp { ...@@ -298,17 +302,17 @@ object OneKeyLoginHelp {
.setSloganHidden(true) // 设置slogan是否隐藏 .setSloganHidden(true) // 设置slogan是否隐藏
.setNumberColor(Color.parseColor("#242424")) .setNumberColor(Color.parseColor("#242424"))
.setNumberSize(24) .setNumberSize(24)
.setNumFieldOffsetY(60) .setNumFieldOffsetY(unit +10)
.setLogBtnBackgroundPath("bg_one_click_login") // 设置登录按钮背景图片 .setLogBtnBackgroundPath("bg_one_click_login") // 设置登录按钮背景图片
.setLogBtnTextColor(Color.parseColor("#ffffff")) // 设置登录按钮颜色 .setLogBtnTextColor(Color.parseColor("#ffffff")) // 设置登录按钮颜色
.setLogBtnTextSize(16) .setLogBtnTextSize(16)
.setLogBtnMarginLeftAndRight(35) // 设置登录按钮距离左右距离 .setLogBtnMarginLeftAndRight(35) // 设置登录按钮距离左右距离
.setLogBtnHeight(78) .setLogBtnHeight(78)
.setLogBtnOffsetY(90) .setLogBtnOffsetY((unit * 2.5).toInt())
.setSwitchAccText("其它方式登录") .setSwitchAccText("其它方式登录")
.setSwitchAccTextSize(15) .setSwitchAccTextSize(15)
.setSwitchAccTextColor(Color.parseColor("#666666")) .setSwitchAccTextColor(Color.parseColor("#666666"))
.setSwitchOffsetY(168) .setSwitchOffsetY(160)
.setAppPrivacyOne("壹点灵用户使用协议", "https://h5.ydl.com/SDUserProtol") .setAppPrivacyOne("壹点灵用户使用协议", "https://h5.ydl.com/SDUserProtol")
.setAppPrivacyTwo("隐私协议", "https://m.ydl.com/Protol/yinsi") .setAppPrivacyTwo("隐私协议", "https://m.ydl.com/Protol/yinsi")
.setAppPrivacyColor(Color.parseColor("#999999"), Color.parseColor("#1da1f2")) .setAppPrivacyColor(Color.parseColor("#999999"), Color.parseColor("#1da1f2"))
......
<resources xmlns:tools="http://schemas.android.com/tools"> <resources>
<style name="authsdk_activity_dialog" parent="Theme.AppCompat.Light.NoActionBar" tools:ignore="ResourceName">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowCloseOnTouchOutside">false</item>
<item name="android:windowIsFloating">true</item>
</style>
<style name="user_new_divide_color_style"> <style name="user_new_divide_color_style">
<item name="android:layout_width">match_parent</item> <item name="android:layout_width">match_parent</item>
......
...@@ -25,7 +25,6 @@ public class EncryptionParams { ...@@ -25,7 +25,6 @@ public class EncryptionParams {
// .collect(Collectors.joining()).trim() // .collect(Collectors.joining()).trim()
// .concat(); // .concat();
String sign = ("path"+path+"timestamp"+timestamp+"version1.0.0").concat(HttpConfig.Companion.getENCRYPTION_APP_SECRET()); String sign = ("path"+path+"timestamp"+timestamp+"version1.0.0").concat(HttpConfig.Companion.getENCRYPTION_APP_SECRET());
LogUtil.e("sign",sign);
sign = MD5Util.md5(sign).toUpperCase(); sign = MD5Util.md5(sign).toUpperCase();
return sign; return sign;
} }
......
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