隐私政策说明(第二期)(动态设置标题)https://gitlab.ghzs.com/pm/halo-app-issues/issues/717

This commit is contained in:
kehaoyuan
2019-12-26 18:04:38 +08:00
parent 5efddb05b3
commit 36834cfec7
4 changed files with 36 additions and 2 deletions

View File

@ -857,7 +857,6 @@ public class DialogUtils {
public static void showPrivacyPolicyDialog(Context context,
@NonNull PrivacyPolicyEntity entity,
EmptyCallback callback) {
// todo 等待设计师动态更换标题方案
final Context activityContext = checkDialogContext(context);
@ -880,6 +879,7 @@ public class DialogUtils {
window.setAttributes(params);
}
TextView title = contentView.findViewById(R.id.title);
TextView bottomContent = contentView.findViewById(R.id.bottom_content);
TextView topContent = contentView.findViewById(R.id.top_content);
TextView allowButton = contentView.findViewById(R.id.allow_button);
@ -940,7 +940,7 @@ public class DialogUtils {
}
}, skipText.length() - 4, skipText.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
title.setText(entity.getTitle());
linkContent.setText(skipText);
linkContent.setMovementMethod(new LinkMovementMethod());
allowButton.setText("我知道了");