summaryrefslogtreecommitdiff
path: root/java/com/android/newbubble
AgeCommit message (Collapse)Author
2018-02-06Bubble layout change.yueg
- Flip back-to-call button icon. - Use different button height for portrait and landscape. In order to make it work, we also create new ViewHolder object when bubble shows and remove reset() when bubble hides. Bug: 67605985 Test: NewBubbleImplIntegrationTest, NewBubbleImplTest, NewReturnToCallControllerTest PiperOrigin-RevId: 184768224 Change-Id: If4e613b12e39c647c34f4cb63a7f934043d42ec7
2018-01-31Add arrow icon to bubble sound button when Bluetooth is connected.yueg
It's an indicator that the button triggers another list. Bug: 67605985 Test: manual PiperOrigin-RevId: 184042869 Change-Id: I3fea526a322dcc3935af111ebd0916b7c5ffcb24
2018-01-31Remove bubble from AOSP.yueg
Bug: 67605985 Test: NewBubbleImplTest, NewBubbleImplIntegrationTest, NewReturnToCallControllerTest PiperOrigin-RevId: 184026033 Change-Id: Ie141ce9a0265ce3a08c01943cdeb94e2cd962e9f
2018-01-25Set avatar as background instead of src.yueg
Since we don't need background any more, setting avatar as background makes elevation work on the same view. So we don't need setOutlineProvider() which might provide a different outline to the image's. Also fix an windowParams NPE. Test: manual PiperOrigin-RevId: 183289973 Change-Id: I452b3f2b66b1810839626f57449be7d10662f2c5
2018-01-24Bubble v2 a11y.yueg
- Set checkable for bubble buttons so the check status of non checkable button (back to call, end call) is not read. - Add support for bottom action buttons. Test: manual PiperOrigin-RevId: 183150371 Change-Id: Ifae9c912ec923e8d2cda3146413138bd2eb94b47
2018-01-23Bubble bottom action changes.yueg
- Hide bottom action view when bubble move canceled - Get display height every time when show bottom action view (onConfigurationChanged() won't be called when bubble is not visible) Test: manual PiperOrigin-RevId: 182979768 Change-Id: I989422c4ab5866b22c78bffbc82f229842a6dd9e
2018-01-23Bubble change when display size change.yueg
- Set primary button background oval and transparent. - Provide outline for primary button since elevation doesn't work when background is transparent. - Re-draw bubble on configuration changed to propagate changes. Test: manual PiperOrigin-RevId: 182949653 Change-Id: I71e70d6fa43fa5867f9cf37002930c5a8dc42b06
2018-01-19Bubble v2 layout changes.yueg
To display expanded view properly with display size and font size set to largest, we made the following changes: - increase expanded view width - use fixed expanded view button height - remove blue background behind avatar Test: manual PiperOrigin-RevId: 182565152 Change-Id: Ie4cea2c42b66320767e283144ddd5d7c5ff40e1c
2018-01-18Descrease bubble bottom text scaling factor.yueg
Also set TextView width according to the scaling factor so texts don't go off screen when scaling. Test: manual PiperOrigin-RevId: 182452685 Change-Id: If438f1b7e0432c2856bd2cb937adfc4131e57410
2018-01-17Move onUiShowing() call from onResume/onPause to onStart/onStop.yueg
It makes sure bubble doesn't appear on split screen when in-call UI is not showing. Although bubble still shows in recents screen. It also make sure the same onUiShowing() is not called multiple times. Bug: 67605985,71746139 Test: InCallActivityTest PiperOrigin-RevId: 182280886 Change-Id: I2a28d0258c722d530000729a89751c6d6b1ee6fd
2018-01-17Handle hiding bubble right after showing it.yueg
If hide bubble right after showing it, we should cancel animation, remove view and set visibility to HIDEN. Otherwise we can't retrieve correct bubble status later, thus hide/show bubble unexpectedly. It at least fix some cases of IllegalArgumentException. Bug: 71746139 Test: NewBubbleTest PiperOrigin-RevId: 182222155 Change-Id: If020b83cfffd9c643fd6fe3d2879a05e5969281f
2018-01-10Log impression when bubble v2 appears.yueg
Bug: 67605985 Test: NewBubbleTest PiperOrigin-RevId: 181493569 Change-Id: I30f7204ad9c78693e2c9b054bd69307fb4768a0b
2018-01-09Bubble v2 dismiss changes.yueg
Including: - Smaller bottom action view - Make gradient darker - Text("hide" and "end call") not all caps - Larger text size - Padding between icon and text - Speed up scaling and hiding animation - Animate opacity together with scaling - Show "Call ended" text in toast instead of bubble Bug: 67605985 Test: NewBubbleTest PiperOrigin-RevId: 181400165 Change-Id: I21b4dcc6324d2dc3eb41377d5264a391c116262f
2018-01-02Bubble v2 dismiss.yueg
Drag and drop bubble to bottom to hide or end call. Flinging to bottom does not trigger the actions. Color/text is not final. Navigation bar is not hiden and the change will be in a following CL. Bug: 67605985 Test: NewBubbleTest PiperOrigin-RevId: 180608133 Change-Id: Iff4cb32226d8fbf0f8e5319f6876a1d74c336b4a
2017-12-27Remove field prefixes.linyuh
Test: Existing tests PiperOrigin-RevId: 180230450 Change-Id: I0b2589cfeeaef81e42a04efa48af24b4e4d0e95f
2017-12-22Bubble v2 RTL language fixes.yueg
- Always use LTR layout direction for root view to avoid jank animation. - Set menu button icon position (left or right) according to default locale. - Set bubble default showing position (left or right) according to default locale. Bug: 67605985 Test: NewBubbleIntegrationTest PiperOrigin-RevId: 179616379 Change-Id: If418cbbf4747c2b655bc83d7c06fc0139979d94b
2017-12-18Bubble v2 logging.yueg
Log the following actions: - expand/collapse bubble - return to call - mute/unmute - switch audio route to speaker/bluetooth/wired or earpiece - end call Bug: 67605985 Test: AudioRouteSelectorActivityTest, NewReturnToCallControllerTest PiperOrigin-RevId: 179484647 Change-Id: I4e2ee34f5550382b2e51bab16ce33e9e16caa3b2
2017-12-18Bubble v2 animation change.yueg
When expand/collapse, use RoundedRectRevealOutlineProvider to reveal/unreveal from top left or top right corner. It's similar to app icon popup in Pixel 2. And animate this together with bubble moving to the middle. Also reduce animation duration. Bug: 67605985 Test: manual PiperOrigin-RevId: 179435867 Change-Id: I58557f77d0db167dc9d2a2dadeb5bc4cfa16702f
2017-12-13Bubble v2 accessibility.yueg
Add description and action for primary button and expanded view action buttons. Bug: 67605985 Test: manual PiperOrigin-RevId: 178955927 Change-Id: I43ad24334cb1e1676cbc390cdba5465ded1464b5
2017-12-11Also show bubble avatar for incoming call and outgoing call.yueg
Instead of just showing avatar for active or background call, we should also show avatar for other calls. In the order: 1. incoming call 2. outgoing call 3. active or background call Test: NewReturnToCallControllerTest PiperOrigin-RevId: 178675371 Change-Id: Ibf8b757821d9a6420ba56439e4f6a93e9e5c3d91
2017-12-08Bubble v2 animation improvement.yueg
Including: 1. Add opacity animation when show/hide/expand/collapse 2. Decrease animation duration when hide 3. Animate small icon when switch left/right side instead of changing gravity Bug: 67605985 Test: manual PiperOrigin-RevId: 178413027 Change-Id: I8a915bbed60a2841ccc534f2c68575da062c82e3
2017-12-07Bubble v2 animation changes.yueg
Including: - expanded view expands/collapses from top of itself - small icon on avatar shows on left side when bubble is on right side - when expand on bottom, bubble move up a bit so that expanded view doesn't go off screen. It also go back to previous position when collapse. - remove animation for collapse when move expanded bubble This change should not enable bubble v2 for anyone. Bug: 67605985 Test: manual PiperOrigin-RevId: 177974562 Change-Id: Id83f3f744b717d51fbe58e58769ac2cd2810d2b5
2017-11-22Bubble v2 UI changes.yueg
Including: - Use exit-to-app icon instead of fullscreen icon for back-to-call button - Use ripple for first button since it needs top-rounded background - Change red hang-up button color and grey icon and text color - Change some dimensions Bug: 67605985 Test: manual PiperOrigin-RevId: 176678427 Change-Id: I3f7836d832f7130f82d7f3764fb392807f3fab9a
2017-11-11Rename value name to avoid conflict.yueg
Test: None PiperOrigin-RevId: 174782468 Change-Id: Iaf842b35f6f5fa4ac0e1505ce39e7470fb23b51d
2017-11-10Implement some UI changes.yueg
Including: - merge end call button with other buttons - add ripple effect for buttons - adjust elevation according to material design guide - add triangle in expanded view Bug: 67605985 Test: manual PiperOrigin-RevId: 174253861 Change-Id: I7b5315245a322235efb39a9cda26b8686cc7bbf9
2017-11-03Add avatar and small icon in bubble primary button.yueg
Bug: 67605985 Test: NewBubbleIntegrationTest, NewReturnToCallControllerTest PiperOrigin-RevId: 174089572 Change-Id: Icaeb41482cffe522e09ee1ec068b5d47f476b146
2017-10-24Rename the new bubble package name from "bubble" to "newbubble".Eric Erfanian
It fixes AOSP for package name conflict. Test: manual PiperOrigin-RevId: 173298696 Change-Id: Id10ebe0bcf029e61f65cf6580c7198abd8395081