OSDN Git Service

Fixed storage calculation when SD card is adopted as internal storage.
authorFelipe Leme <felipeal@google.com>
Mon, 8 Aug 2016 18:04:30 +0000 (11:04 -0700)
committerFelipe Leme <felipeal@google.com>
Mon, 15 Aug 2016 23:32:54 +0000 (16:32 -0700)
commitc53410c41148a3882673ba1a3d95dd050649ea2a
tree5effd550068da20032e009d0973901f7fa0847b0
parent794de426da27b7d9bf4d93b0533d9e0ff16dc105
Fixed storage calculation when SD card is adopted as internal storage.

A SD Card can be set as internal storage, in which case its total must
be added to the total internal storage size.

Prior to this change, the total internal storage size was hardcoded as
the value returned by Storage Manager.

Also fixed the storage summary total to exclude portable devices.

Fixes: 30689428
BUG: 30742322

Change-Id: I1e33038eeebc91f3c525a387a97987391c10f2f9
src/com/android/settings/deviceinfo/StorageSettings.java