Fix calculateSizeBytes

dataBytes including cacheBytes, so not adding cacheBytes separately.

Bug: 236346018
Test: Manually with Settings
Change-Id: I92ecad3d9ec7a29d690e8ceba2614dd11b561ad3
This commit is contained in:
Chaohui Wang
2023-02-08 16:17:28 +08:00
parent d590c1ebc9
commit d67bd3b575

View File

@@ -89,7 +89,7 @@ class AppStoragePreferenceTest {
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
.assertIsDisplayed()
composeTestRule.waitUntilExists(hasText("123 B used in internal storage"))
composeTestRule.waitUntilExists(hasText("120 B used in internal storage"))
}
@Test
@@ -104,7 +104,7 @@ class AppStoragePreferenceTest {
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
.assertIsDisplayed()
composeTestRule.waitUntilExists(hasText("123 B used in external storage"))
composeTestRule.waitUntilExists(hasText("120 B used in external storage"))
}
private fun setContent(app: ApplicationInfo) {