Merge "Count legacy games as games in Storage view."

This commit is contained in:
Daniel Nishi
2017-03-14 00:11:58 +00:00
committed by Android (Google) Code Review
2 changed files with 18 additions and 0 deletions

View File

@@ -98,6 +98,11 @@ public class StorageAsyncLoader
result.musicAppsSize += attributedAppSizeInBytes;
break;
default:
// The deprecated game flag does not set the category.
if ((app.flags & ApplicationInfo.FLAG_IS_GAME) != 0) {
result.gamesSize += attributedAppSizeInBytes;
break;
}
result.otherAppsSize += attributedAppSizeInBytes;
break;
}