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

Commit 93c2a36c authored by Mike Yu's avatar Mike Yu Committed by Automerger Merge Worker
Browse files

Slightly improve isDoHEnabled() am: 29505cb6 am: 1d6d197b am: 05b4cadf

Original change: https://android-review.googlesource.com/c/platform/packages/modules/DnsResolver/+/1836235

Change-Id: Ia06f29fa35de34b070babf80de2115d48c38d60b
parents 41701573 05b4cadf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ inline bool isUserDebugBuild() {

inline bool isDoHEnabled() {
    // STOPSHIP(b/200763585): clean up it before T shipping.
    if (android::modules::sdklevel::IsAtLeastT()) return 1;
    static bool isAtLeastT = android::modules::sdklevel::IsAtLeastT();
    if (isAtLeastT) return 1;

    return android::net::Experiments::getInstance()->getFlag("doh", 0);
}