Fix case in which onTaskStackChanged was not called
In completeResumeLocked, visibility was changed but we didn't set the
flag so the listeners didn't get notified.
Test:
runtest -c com.android.server.am.TaskStackChangedListenerTest frameworks-services
Change-Id: I4b4076a895baafc877f312d24211a2fc69a98e3b
Fixes: 31527783
diff --git a/services/tests/servicestests/Android.mk b/services/tests/servicestests/Android.mk
index b76392c..3f5b96e 100644
--- a/services/tests/servicestests/Android.mk
+++ b/services/tests/servicestests/Android.mk
@@ -53,6 +53,8 @@
LOCAL_JACK_FLAGS := --multi-dex native
endif # EMMA_INSTRUMENT_STATIC
+LOCAL_STATIC_JAVA_LIBRARIES += ub-uiautomator
+
include $(BUILD_PACKAGE)
#########################################################################