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

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

Slightly improve isDoHEnabled() am: 29505cb6

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

Change-Id: I84fe05379c5f319bc23f254ca7ece5b0225f1864
parents 23664e6c 29505cb6
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);
}