Commit 20109128 authored by gogerald's avatar gogerald Committed by Commit Bot

[Autofill Assistant] Set default state to checked

Since we expect this feature has positive impact, so it would
better to not asking again and again.

Bug: 806868
Change-Id: I4dd50a60a9dc350cb0710d333f1489d3a4967a5d
Reviewed-on: https://chromium-review.googlesource.com/c/1351582Reviewed-by: default avatarMathias Carlen <mcarlen@chromium.org>
Commit-Queue: Ganggui Tang <gogerald@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610986}
parent 9497829e
...@@ -776,6 +776,8 @@ class AutofillAssistantUiDelegate { ...@@ -776,6 +776,8 @@ class AutofillAssistantUiDelegate {
.inflate(R.layout.init_screen, mCoordinatorView) .inflate(R.layout.init_screen, mCoordinatorView)
.findViewById(R.id.init_screen); .findViewById(R.id.init_screen);
// Set default state to checked.
((CheckBox) initView.findViewById(R.id.checkbox_dont_show_init_again)).setChecked(true);
initView.findViewById(R.id.button_init_ok) initView.findViewById(R.id.button_init_ok)
.setOnClickListener(unusedView -> onInitClicked(true, initView)); .setOnClickListener(unusedView -> onInitClicked(true, initView));
initView.findViewById(R.id.button_init_not_ok) initView.findViewById(R.id.button_init_not_ok)
......
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