Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a45eb7eb authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Enable auto-fill when activity is marked as FLAG_SECURE."

parents e0ac9dab 71377a4a
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -421,18 +421,17 @@ public class AssistStructure implements Parcelable {

            ViewNodeBuilder builder = new ViewNodeBuilder(assist, mRoot, false, 0);
            if ((root.getWindowFlags() & WindowManager.LayoutParams.FLAG_SECURE) != 0) {
                // This is a secure window, so it doesn't want a screenshot, and that
                // means we should also not copy out its view hierarchy.

                if (forAutoFill) {
                    // NOTE: flags are currently not supported, hence 0
                    view.onProvideAutoFillStructure(builder, 0);
                } else {
                    // This is a secure window, so it doesn't want a screenshot, and that
                    // means we should also not copy out its view hierarchy for Assist
                    view.onProvideStructure(builder);
                }
                    builder.setAssistBlocked(true);
                    return;
                }
            }
            if (forAutoFill) {
                // NOTE: flags are currently not supported, hence 0
                view.dispatchProvideAutoFillStructure(builder, 0);