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

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

Merge "Create new Metadata name for injecting HTML snippet" into main

parents 567d4c29 d697f74d
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -432,6 +432,20 @@ public class LocationManager {
    public static final String METADATA_SETTINGS_FOOTER_STRING =
            "com.android.settings.location.FOOTER_STRING";

    /**
     * Metadata name for {@link LocationManager#SETTINGS_FOOTER_DISPLAYED_ACTION} broadcast
     * receivers to specify a string resource id as location settings footer HTML snippet. This is
     * for use only by apps that are included in the system image. If HTML snippet is provided,
     * plain text footer text specified with {@link #METADATA_SETTINGS_FOOTER_STRING} will be
     * ignored.
     *
     * <p>See {@link #SETTINGS_FOOTER_DISPLAYED_ACTION} for more detail on how to use.
     *
     * @hide
     */
    public static final String METADATA_SETTINGS_FOOTER_HTML =
            "com.android.settings.location.FOOTER_HTML";

    private static final long MAX_SINGLE_LOCATION_TIMEOUT_MS = 30 * 1000;

    private static final String CACHE_KEY_LOCATION_ENABLED_PROPERTY =