部分使用APP名字的地方改为字符串引用

This commit is contained in:
huangjian
2021-08-09 11:31:36 +08:00
parent b3d50d88e6
commit 94be0bfc59
4 changed files with 13 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ public class AboutActivity extends BaseActivity {
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about); setContentView(R.layout.activity_about);
initWhiteTitleBar("关于音游"); initWhiteTitleBar(getString(R.string.about_app));
initView(); initView();
initData(); initData();
} }

View File

@@ -25,7 +25,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:text="音游隐私政策" android:text="@string/app_privacy_policy"
android:textColor="#ff1b1b1b" android:textColor="#ff1b1b1b"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" /> android:textStyle="bold" />

View File

@@ -1,5 +1,6 @@
<!DOCTYPE resources [<!ENTITY app_name "音游" >]>
<resources xmlns:tools="http://schemas.android.com/tools"> <resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name">音游</string> <string name="app_name">&app_name;</string>
<string name="no_list_data">暂无消息</string> <string name="no_list_data">暂无消息</string>
<string name="str_network_not_capable">网络不给力</string> <string name="str_network_not_capable">网络不给力</string>
<string name="network_error_reload">网络异常,加载失败</string> <string name="network_error_reload">网络异常,加载失败</string>
@@ -677,7 +678,7 @@
<string name="text_setting_community_norms">社区规范</string> <string name="text_setting_community_norms">社区规范</string>
<string name="text_setting_contact_us">联系官方</string> <string name="text_setting_contact_us">联系官方</string>
<string name="text_setting_help">帮助</string> <string name="text_setting_help">帮助</string>
<string name="text_setting_about">关于音游</string> <string name="text_setting_about">关于&app_name;</string>
<string name="text_setting_check_for_update">检查版本</string> <string name="text_setting_check_for_update">检查版本</string>
<string name="text_setting_lab">实验室</string> <string name="text_setting_lab">实验室</string>
<string name="text_setting_logout">退出当前账号</string> <string name="text_setting_logout">退出当前账号</string>
@@ -808,7 +809,7 @@
<string name="new_user_task_content">萝卜X20</string> <string name="new_user_task_content">萝卜X20</string>
<string name="new_user_task_receive_award">领取奖励</string> <string name="new_user_task_receive_award">领取奖励</string>
<string name="new_user_task_hint">萝卜可用于送礼物、购买头饰座驾哦~</string> <string name="new_user_task_hint">萝卜可用于送礼物、购买头饰座驾哦~</string>
<string name="tip_privacy_agreement_content">欢迎您使用音游。\n\n1.您在使用我们的产品或服务时,我们可能会收集和使用您的存储信息,用于缓存图片数据,上传头像、发布动态时访问相册,但不会主动读取您的存储数据。\n\n2.在使用我们的产品或服务时,您有权访问、更正、删除您的个人信息,您也可以更改您的授权范围,或注销账号。\n\n3.我们非常重视用户的隐私和个人信息保护。您在使用我们的产品和服务时所提供的个人信息将只用于本《隐私政策》中规定的用途。</string> <string name="tip_privacy_agreement_content">欢迎您使用&app_name;。\n\n1.您在使用我们的产品或服务时,我们可能会收集和使用您的存储信息,用于缓存图片数据,上传头像、发布动态时访问相册,但不会主动读取您的存储数据。\n\n2.在使用我们的产品或服务时,您有权访问、更正、删除您的个人信息,您也可以更改您的授权范围,或注销账号。\n\n3.我们非常重视用户的隐私和个人信息保护。您在使用我们的产品和服务时所提供的个人信息将只用于本《隐私政策》中规定的用途。</string>
<string name="tip_privacy_agreement_desc">欢迎您点击查看%s和%s当您点击“同意”即表示您已充分阅读、理解并接受《用户协议》和《隐私政策》的全部内容。</string> <string name="tip_privacy_agreement_desc">欢迎您点击查看%s和%s当您点击“同意”即表示您已充分阅读、理解并接受《用户协议》和《隐私政策》的全部内容。</string>
<string name="tip_privacy_agreement">《隐私政策》</string> <string name="tip_privacy_agreement">《隐私政策》</string>
<string name="tip_user_agreement">《用户协议》</string> <string name="tip_user_agreement">《用户协议》</string>
@@ -825,7 +826,7 @@
<string name="tip_login_other_login">其他方式登录</string> <string name="tip_login_other_login">其他方式登录</string>
<string name="tip_login_account_login">账号登录</string> <string name="tip_login_account_login">账号登录</string>
<string name="text_dialog_pm_notice">为呵护青少年健康成长,音游推出“青少年模式”,该模式下针对青少年推送精选优化的内容。</string> <string name="text_dialog_pm_notice">为呵护青少年健康成长,&app_name;推出“青少年模式”,该模式下针对青少年推送精选优化的内容。</string>
<string name="to_set_pm">设置青少年模式</string> <string name="to_set_pm">设置青少年模式</string>
<string name="text_pm_set_pwd_tips">设置青少年模式的开启和关闭的数字密码</string> <string name="text_pm_set_pwd_tips">设置青少年模式的开启和关闭的数字密码</string>
<string name="text_pm_close_pwd">青少年模式关闭密码</string> <string name="text_pm_close_pwd">青少年模式关闭密码</string>
@@ -833,7 +834,7 @@
<string name="qq_login">QQ登录</string> <string name="qq_login">QQ登录</string>
<string name="hint_input_nick">请输入昵称</string> <string name="hint_input_nick">请输入昵称</string>
<string name="text_bind_phone">绑定手机号</string> <string name="text_bind_phone">绑定手机号</string>
<string name="slogan">听声音玩游戏交朋友,来音游</string> <string name="slogan">听声音玩游戏交朋友,来&app_name;</string>
<string name="text_agree">同意</string> <string name="text_agree">同意</string>
<string name="text_disagree">不同意</string> <string name="text_disagree">不同意</string>
@@ -885,7 +886,7 @@
<string name="collect">收藏</string> <string name="collect">收藏</string>
<string name="diamond">钻石</string> <string name="diamond">钻石</string>
<string name="join">加入</string> <string name="join">加入</string>
<string name="pm_detail">音游护苗计划》</string> <string name="pm_detail">&app_name;护苗计划》</string>
<string name="charge_agreement">已阅读并同意</string> <string name="charge_agreement">已阅读并同意</string>
<string name="agreement">《用户充值协议》</string> <string name="agreement">《用户充值协议》</string>
<string name="user_info">个人资料</string> <string name="user_info">个人资料</string>
@@ -897,5 +898,7 @@
<string name="add_user_info_desc">本软件只提供给18岁或以上用户使用</string> <string name="add_user_info_desc">本软件只提供给18岁或以上用户使用</string>
<string name="find_new">发现萌新</string> <string name="find_new">发现萌新</string>
<string name="empty_newbie_list">暂无推荐萌新</string> <string name="empty_newbie_list">暂无推荐萌新</string>
<string name="app_privacy_policy">&app_name;隐私政策</string>
<string name="about_app">关于&app_name;</string>
<string name="authorization_text">并授权&app_name;获取本机号码</string>
</resources> </resources>

View File

@@ -69,7 +69,7 @@ public class QuickLoginUiConfig {
.setLoginBtnBottomYOffset(BOTTOM_OFFSET) .setLoginBtnBottomYOffset(BOTTOM_OFFSET)
// 隐私栏 // 隐私栏
.setPrivacyTextStart("登录即代表同意") .setPrivacyTextStart("登录即代表同意")
.setPrivacyTextEnd("并授权音游获取本机号码") .setPrivacyTextEnd(context.getString(R.string.authorization_text))
.setPrivacyTextColor(ContextCompat.getColor(context, R.color.text_secondary_4f516a)) .setPrivacyTextColor(ContextCompat.getColor(context, R.color.text_secondary_4f516a))
.setPrivacyProtocolColor(ContextCompat.getColor(context, R.color.app_248cfe)) .setPrivacyProtocolColor(ContextCompat.getColor(context, R.color.app_248cfe))
.setHidePrivacyCheckBox(false) .setHidePrivacyCheckBox(false)