Fix calculateSizeBytes
dataBytes including cacheBytes, so not adding cacheBytes separately. Bug: 236346018 Test: Manually with Settings Change-Id: I92ecad3d9ec7a29d690e8ceba2614dd11b561ad3
This commit is contained in:
@@ -89,7 +89,7 @@ class AppStoragePreferenceTest {
|
|||||||
|
|
||||||
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
|
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
composeTestRule.waitUntilExists(hasText("123 B used in internal storage"))
|
composeTestRule.waitUntilExists(hasText("120 B used in internal storage"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -104,7 +104,7 @@ class AppStoragePreferenceTest {
|
|||||||
|
|
||||||
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
|
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
composeTestRule.waitUntilExists(hasText("123 B used in external storage"))
|
composeTestRule.waitUntilExists(hasText("120 B used in external storage"))
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setContent(app: ApplicationInfo) {
|
private fun setContent(app: ApplicationInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user