If external storage is emulated, don't show it as separate entries.
The installed app details UI is really complicted for the two-partition internal and external storage case... however, in our lovely new world of emulated external storage, there is no reason for this, since the external storage is using the same partition as internal storage. So in this case, don't show external storage as a separate item, just combine it into the base app size and data size values. Change-Id: Iea0e78f2d532ad50e20fef98740c93b2e897890a
This commit is contained in:
@@ -786,7 +786,10 @@ public class ApplicationsState {
|
||||
|
||||
private long getTotalExternalSize(PackageStats ps) {
|
||||
if (ps != null) {
|
||||
// We also include the cache size here because for non-emulated
|
||||
// we don't automtically clean cache files.
|
||||
return ps.externalCodeSize + ps.externalDataSize
|
||||
+ ps.externalCacheSize
|
||||
+ ps.externalMediaSize + ps.externalObbSize;
|
||||
}
|
||||
return SIZE_INVALID;
|
||||
@@ -822,7 +825,7 @@ public class ApplicationsState {
|
||||
long externalCodeSize = stats.externalCodeSize
|
||||
+ stats.externalObbSize;
|
||||
long externalDataSize = stats.externalDataSize
|
||||
+ stats.externalMediaSize + stats.externalCacheSize;
|
||||
+ stats.externalMediaSize;
|
||||
long newSize = externalCodeSize + externalDataSize
|
||||
+ getTotalInternalSize(stats);
|
||||
if (entry.size != newSize ||
|
||||
|
Reference in New Issue
Block a user