Fix storage requirement for Linux terminal
getPrimaryStorageSize rounds up size by GB, not GiB Bug: 366374130 Change-Id: Idf43c5cee41172d763b6c271042317d151d41a38 Test: build and run
This commit is contained in:
@@ -43,7 +43,7 @@ public class LinuxTerminalPreferenceController extends DeveloperOptionsPreferenc
|
|||||||
static final long MEMORY_MIN_BYTES = DataUnit.GIGABYTES.toBytes(4); // 4_000_000_000
|
static final long MEMORY_MIN_BYTES = DataUnit.GIGABYTES.toBytes(4); // 4_000_000_000
|
||||||
|
|
||||||
@VisibleForTesting
|
@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";
|
private static final String LINUX_TERMINAL_KEY = "linux_terminal";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user