<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 9.2.1" type="baseline" client="gradle" dependencies="false" name="AGP (9.2.1)" variant="all" version="9.2.1">

    <issue
        id="AppBundleLocaleChanges"
        message="Found dynamic locale changes, but did not find corresponding Play Core library calls for downloading languages and splitting by language is not disabled in the `bundle` configuration"
        errorLine1="      config.locale = mappedLocale;"
        errorLine2="             ~~~~~~">
        <location
            file="src/main/java/org/mozilla/gecko/GeckoThread.java"
            line="319"
            column="14"/>
    </issue>

    <issue
        id="DiscouragedApi"
        message="Use of `scheduleAtFixedRate` is strongly discouraged because it can lead to unexpected behavior when Android processes become cached (tasks may unexpectedly execute hundreds or thousands of times in quick succession when a process changes from cached to uncached); prefer using `scheduleWithFixedDelay`"
        errorLine1="          sSamplingScheduler.scheduleAtFixedRate("
        errorLine2="          ^">
        <location
            file="src/main/java/org/mozilla/gecko/GeckoJavaSampler.java"
            line="610"
            column="11"/>
    </issue>

    <issue
        id="DiscouragedApi"
        message="Use of `scheduleAtFixedRate` is strongly discouraged because it can lead to unexpected behavior when Android processes become cached (tasks may unexpectedly execute hundreds or thousands of times in quick succession when a process changes from cached to uncached); prefer using `scheduleWithFixedDelay`"
        errorLine1="          sSamplingScheduler.scheduleAtFixedRate("
        errorLine2="          ^">
        <location
            file="src/main/java/org/mozilla/gecko/GeckoJavaSampler.java"
            line="756"
            column="11"/>
    </issue>

    <issue
        id="WakelockTimeout"
        message="Provide a timeout when requesting a wakelock with `PowerManager.Wakelock.acquire(long timeout)`. This will ensure the OS will cleanup any wakelocks that last longer than you intend, and will save your user&apos;s battery."
        errorLine1="      wl.acquire();"
        errorLine2="      ~~~~~~~~~~~~">
        <location
            file="src/main/java/org/mozilla/gecko/GeckoAppShell.java"
            line="502"
            column="7"/>
    </issue>

    <issue
        id="StaticFieldLeak"
        message="This `AsyncTask` class should be static or leaks might occur (org.mozilla.gecko.media.GeckoMediaDrmBridge.PostRequestTask)"
        errorLine1="  private class PostRequestTask extends AsyncTask&lt;Void, Void, Void> {"
        errorLine2="                ~~~~~~~~~~~~~~~">
        <location
            file="src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridge.java"
            line="534"
            column="17"/>
    </issue>

    <issue
        id="StaticFieldLeak"
        message="Do not place Android context classes in static fields (static reference to `GeckoNetworkManager` which has field `mContext` pointing to `Context`); this is a memory leak"
        errorLine1="  private static GeckoNetworkManager instance;"
        errorLine2="          ~~~~~~">
        <location
            file="src/main/java/org/mozilla/gecko/GeckoNetworkManager.java"
            line="48"
            column="11"/>
    </issue>

    <issue
        id="ClickableViewAccessibility"
        message="Custom view `GeckoView` overrides `onTouchEvent` but not `performClick`"
        errorLine1="  public boolean onTouchEvent(final MotionEvent event) {"
        errorLine2="                 ~~~~~~~~~~~~">
        <location
            file="src/main/java/org/mozilla/geckoview/GeckoView.java"
            line="934"
            column="18"/>
    </issue>

</issues>
