Merge "Autofill: fix missing focus/ripple effect for authentication view" into pi-dev

This commit is contained in:
Dake Gu
2018-05-18 22:44:25 +00:00
committed by Android (Google) Code Review
4 changed files with 8 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
android:id="@+id/autofill_dataset_picker"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:foreground="?attr/listChoiceBackgroundIndicator"
style="@style/AutofillDatasetPicker">
<ListView

View File

@@ -60,12 +60,13 @@
</LinearLayout>
<!-- autofill_container is the common parent for inserting authentication item or
autofill_dataset_list, autofill_dataset_foolter-->
<!-- autofill_dataset_picker is the common parent for inserting authentication item or
autofill_dataset_list, autofill_dataset_footer-->
<LinearLayout
android:layout_width="304dp"
android:layout_height="wrap_content"
android:id="@+id/autofill_dataset_picker"
android:foreground="?attr/listChoiceBackgroundIndicator"
android:orientation="vertical">
<ListView
android:id="@+id/autofill_dataset_list"
@@ -83,4 +84,4 @@
android:orientation="vertical"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>

View File

@@ -18,6 +18,7 @@
android:id="@+id/autofill_dataset_picker"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:foreground="?attr/listChoiceBackgroundIndicator"
style="@style/AutofillDatasetPicker">
<LinearLayout

View File

@@ -228,8 +228,8 @@ final class FillUi {
mWindow = null;
return;
}
decor.setFocusable(true);
decor.setOnClickListener(v -> mCallback.onResponsePicked(response));
container.setFocusable(true);
container.setOnClickListener(v -> mCallback.onResponsePicked(response));
if (!mFullScreen) {
final Point maxSize = mTempPoint;