Files
Liran Binyamin c8aa3a6c00 Bubble bar expanded view handle menu fixes
1. Notify the menu view controller listener that the menu is visible
   at the start rather than at the end. This ensures that the task
   view is setting an obscured area so it doesn't process touches
   while the menu is animating in.

2. Set the handle menu alpha to 1 at the beginning of the expansion
   animation. As part of the switch animation, we set the alpha of
   the handle for the bubble we are switching from to 0.

Also added a unit test for BubbleBarMenuViewController

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 399153287
Fixes: 397710596
Test: atest BubbleBarMenuViewController
Test: manual
       - have 2 bubbles in the bar
       - tap on the bar to expand
       - tap on other bubble to switch
       - tap on handle menu and dismiss bubble
       - observe handle is visible in the newly selected bubble
Test: manual
       - expand bubble bar
       - tap on handle menu and quickly try to tap on an item
          - easier to test by changing the animation durations
       - observe touch is handled correctly
Change-Id: I11c170f6293b5a24534933a6c19ef64d1b2de2f7
2025-03-31 13:03:58 -04:00

29 lines
1.2 KiB
XML

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.wm.shell.multivalenttests">
<uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS"/>
<uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT"/>
<application android:debuggable="true" android:supportsRtl="true" >
<uses-library android:name="android.test.runner" />
<activity android:name="com.android.wm.shell.bubbles.bar.BubbleBarAnimationHelperTest$TestActivity"
android:exported="true"/>
<activity android:name="com.android.wm.shell.bubbles.bar.BubbleBarMenuViewControllerTest$TestActivity"
android:exported="true"/>
<activity android:name=".bubbles.TestActivity"
android:allowEmbedded="true"
android:documentLaunchMode="always"
android:excludeFromRecents="true"
android:exported="false"
android:resizeableActivity="true" />
</application>
<instrumentation
android:name="androidx.test.runner.AndroidJUnitRunner"
android:label="Multivalent tests for WindowManager-Shell"
android:targetPackage="com.android.wm.shell.multivalenttests">
</instrumentation>
</manifest>