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

Commit 294b41a8 authored by Jeongik Cha's avatar Jeongik Cha
Browse files

Fix storage requirement for Linux terminal

getPrimaryStorageSize rounds up size by GB, not GiB

Bug: 366374130
Change-Id: Idf43c5cee41172d763b6c271042317d151d41a38
Test: build and run
parent 5965a10f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public class LinuxTerminalPreferenceController extends DeveloperOptionsPreferenc
    static final long MEMORY_MIN_BYTES = DataUnit.GIGABYTES.toBytes(4); // 4_000_000_000

    @VisibleForTesting
    static final long STORAGE_MIN_BYTES = DataUnit.GIBIBYTES.toBytes(128); // 128 * 2^30
    static final long STORAGE_MIN_BYTES = DataUnit.GIGABYTES.toBytes(128); // 128_000_000_000

    private static final String LINUX_TERMINAL_KEY = "linux_terminal";