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

Commit 2d90fd0e authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Use device api level if first_api_level is not set. Bug: 79429532" into...

Merge "Use device api level if first_api_level is not set. Bug: 79429532" into ub-launcher3-edmonton
parents 788003e4 a30bf371
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -203,7 +203,12 @@ public class OverviewInteractionState {
    }

    private boolean shouldIgnoreSwipeUpEnabledSettings() {
        String sdkInt = getSystemProperty("ro.product.first_api_level", "0");
        int deviceApiLevel = Build.VERSION.SDK_INT;

        // Note: on factory ROM devices, this first_api_level property is intentionally not set.
        // deviceApiLevel is used in these case.
        String sdkInt = getSystemProperty("ro.product.first_api_level",
                Integer.toString(deviceApiLevel));
        try {
            return Integer.parseInt(sdkInt) >= Build.VERSION_CODES.P;
        } catch (Exception e) {