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

Commit a387719d authored by Zemiao Zhu's avatar Zemiao Zhu
Browse files

Fix test error 'No static method isAtLeastS()' by adding reference in

production code.

Bug: 182963154
Test: atest DocumentsUIGoogleTests:com.android.documentsui.files.ActionHandlerTest
Change-Id: Ia10444677ff7a6ca3c48680e92f352e8576e660c
(cherry picked from commit 88787fda)
parent 2cb4dcb6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ public class VersionUtils {
     * Returns whether the device is running on the Android R or newer.
     */
    public static boolean isAtLeastR() {
        return Build.VERSION.CODENAME.equals("R")
        return isAtLeastS() // Keep reference to isAtLeastS() so it's not stripped from test apk
                || Build.VERSION.CODENAME.equals("R")
                || Build.VERSION.SDK_INT >= 30;
    }
}