summaryrefslogtreecommitdiffstats
path: root/quickstep/tests
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-05-29 01:09:06 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-06-13 10:39:46 -0700
commit5b636ebfd4a8a2ef53a11d0190c59dd0fb9aad75 (patch)
tree1760e85afd070e4b4d57a38f8ae5687ef3bffe57 /quickstep/tests
parent3d6e96d5265cdea78ad4e01b0f9fde0eea539094 (diff)
downloadandroid_packages_apps_Trebuchet-5b636ebfd4a8a2ef53a11d0190c59dd0fb9aad75.tar.gz
android_packages_apps_Trebuchet-5b636ebfd4a8a2ef53a11d0190c59dd0fb9aad75.tar.bz2
android_packages_apps_Trebuchet-5b636ebfd4a8a2ef53a11d0190c59dd0fb9aad75.zip
Optimizing some layouts in taskview
> Recycling DigitalWellBeingToast so that the view is not inflated everytime > Simplifying DigitalWellBeingToast to use a single text view > Adding support for footers in taskView without creating additional layout Bug: 122345781 Change-Id: Ia889819b93eb8644532ea95c6767554874d5e2d1
Diffstat (limited to 'quickstep/tests')
-rw-r--r--quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java b/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java
index 70f9c90da..0c5a6f5b6 100644
--- a/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java
+++ b/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java
@@ -51,15 +51,15 @@ public class DigitalWellBeingToastTest extends AbstractQuickStepTest {
mLauncher.pressHome();
final DigitalWellBeingToast toast = getToast();
- assertTrue("Toast is not visible", toast.isShown());
- assertEquals("Toast text: ", "5 minutes left today", toast.getTextView().getText());
+ assertTrue("Toast is not visible", toast.hasLimit());
+ assertEquals("Toast text: ", "5 minutes left today", toast.getText());
// Unset time limit for app.
runWithShellPermission(
() -> usageStatsManager.unregisterAppUsageLimitObserver(observerId));
mLauncher.pressHome();
- assertFalse("Toast is visible", getToast().isShown());
+ assertFalse("Toast is visible", getToast().hasLimit());
} finally {
runWithShellPermission(
() -> usageStatsManager.unregisterAppUsageLimitObserver(observerId));