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

Commit 82654ed9 authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "[Expressive design] Adjust override flag logic" into main

parents 877f01cf ed49dc9d
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -41,18 +41,14 @@ object SettingsThemeHelper {
        }
        // Enable if overridden by system property
        if (getPropBoolean(context, IS_EXPRESSIVE_DESIGN_ENABLED, false)) {
            return true;
        }
        // Disable if feature flag is disabled.
        if (!Flags.isExpressiveDesignEnabled()) {
            return false;
            return true
        }
        // Allow the activity to override.
        val activity = getActivityFromContext(context)
        if (activity is ExpressiveDesignEnabledProvider) {
            return activity.isExpressiveDesignEnabled()
        }
        return true
        return Flags.isExpressiveDesignEnabled()
    }

    private fun getActivityFromContext(context: Context): Activity? {