Added a call to ActivityManager.isLowRamDevice() from SysUtils.detectLowEndDevice().
commit80dc8d87cfd1ef70541c101a355965f3a7a74415
authorpetrcermak <petrcermak@chromium.org>
Wed, 3 Dec 2014 12:24:58 +0000 (3 04:24 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Dec 2014 12:25:26 +0000 (3 12:25 +0000)
treed2019e28667275dc1cb682b71eee9189ea016df0
parent0f1372f8bba274ada49d6cb859b21c9459e5199f
Added a call to ActivityManager.isLowRamDevice() from SysUtils.detectLowEndDevice().

This patch adds an extra check to the SysUtils.detectLowEndDevice() method
(if no command-line flag is supplied). If ActivityManager.isLowRamDevice()
returns true, the method returns true (without checking device memory size).

BUG=

Review URL: https://codereview.chromium.org/766873002

Cr-Commit-Position: refs/heads/master@{#306592}
base/android/java/src/org/chromium/base/SysUtils.java