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

Commit 09aea5a8 authored by Eric Holk's avatar Eric Holk Committed by android-build-merger
Browse files

Merge "Hard-disable precompiled layouts" into qt-dev am: 3fa2657f

am: ff08b7c2

Change-Id: Ib3e33ed4430b6f7d4ba47ccf781e1596094942d0
parents 989ec46e ff08b7c2
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -416,23 +416,8 @@ public abstract class LayoutInflater {
    }

    private void initPrecompiledViews() {
        // Use the device config if enabled, otherwise default to the system property.
        String usePrecompiledLayout = null;
        try {
            usePrecompiledLayout = DeviceConfig.getProperty(
                    DeviceConfig.NAMESPACE_RUNTIME,
                    USE_PRECOMPILED_LAYOUT);
        } catch (Exception e) {
          // May be caused by permission errors reading the property (i.e. instant apps).
        }
        // Precompiled layouts are not supported in this release.
        boolean enabled = false;
        if (TextUtils.isEmpty(usePrecompiledLayout)) {
            enabled = SystemProperties.getBoolean(
                    USE_PRECOMPILED_LAYOUT,
                    false);
        } else {
            enabled = Boolean.parseBoolean(usePrecompiledLayout);
        }
        initPrecompiledViews(enabled);
    }