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

Commit adc98bd9 authored by Mike Yu's avatar Mike Yu Committed by Gerrit Code Review
Browse files

Merge "DoH: Use DoH feature in T if the flag is unset"

parents e0168482 d073bc5c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -61,5 +61,6 @@ inline bool isUserDebugBuild() {
}

inline bool isDoHEnabled() {
    return android::net::Experiments::getInstance()->getFlag("doh", 0);
    static bool isAtLeastT = android::modules::sdklevel::IsAtLeastT();
    return android::net::Experiments::getInstance()->getFlag("doh", isAtLeastT ? 1 : 0);
}