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

Commit f176681e authored by Steve Howard's avatar Steve Howard
Browse files

Support for download manager "queue for wifi" dialogs

New DB column and new secure setting for recommended max download size
over mobile.

Change-Id: If87acda62140ad6d8f923a000a5ff9232021e1a3
parent d3301e9f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -895,6 +895,14 @@ public final class Downloads {
         */
        public static final String COLUMN_IS_VISIBLE_IN_DOWNLOADS_UI = "is_visible_in_downloads_ui";

        /**
         * If true, the user has confirmed that this download can proceed over the mobile network
         * even though it exceeds the recommended maximum size.
         * <P>Type: BOOLEAN</P>
         */
        public static final String COLUMN_BYPASS_RECOMMENDED_SIZE_LIMIT =
            "bypass_recommended_size_limit";

        /*
         * Lists the destinations that an application can specify for a download.
         */
+9 −0
Original line number Diff line number Diff line
@@ -3427,6 +3427,15 @@ public final class Settings {
        public static final String DOWNLOAD_MAX_BYTES_OVER_MOBILE =
                "download_manager_max_bytes_over_mobile";

        /**
         * The recommended maximum size, in bytes, of a download that the download manager should
         * transfer over a non-wifi connection. Over this size, the use will be warned, but will
         * have the option to start the download over the mobile connection anyway.
         * @hide
         */
        public static final String DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE =
                "download_manager_recommended_max_bytes_over_mobile";

        /**
         * ms during which to consume extra events related to Inet connection condition
         * after a transtion to fully-connected