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

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

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

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

Change-Id: Iaf989cb8dbf178947e1fe8b03c1d4b28f473c937
parents 63d89a16 1d6d197b
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);
}