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

Commit 8cbc599d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add IntDef for FileChooserParams.Mode" into main

parents 78f5a8aa 705626be
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -552,6 +552,16 @@ public class WebChromeClient {
     * Parameters used in the {@link #onShowFileChooser} method.
     */
    public static abstract class FileChooserParams {
        /** @hide */
        @IntDef(prefix = { "MODE_" }, value = {
            MODE_OPEN,
            MODE_OPEN_MULTIPLE,
            MODE_OPEN_FOLDER,
            MODE_SAVE,
        })
        @Retention(RetentionPolicy.SOURCE)
        public @interface Mode {}

        /** Open single file. Requires that the file exists before allowing the user to pick it. */
        public static final int MODE_OPEN = 0;
        /** Like Open but allows multiple files to be selected. */
@@ -603,6 +613,7 @@ public class WebChromeClient {
        /**
         * Returns file chooser mode.
         */
        @Mode
        public abstract int getMode();

        /**