summaryrefslogtreecommitdiffstats
path: root/res
Commit message (Collapse)AuthorAgeFilesLines
* Update notification view to match newer specsTony Wickham2017-02-246-59/+19
| | | | | | | | | | | - Use smaller radius for notifications round rect background - Remove "Notifications" header, and clip children to round rect path - Flip main notification so that icon shows on the right instead of left; footer is also flipped so animation makes sense - Clean up animations to animate view outline instead of height Bug: 32410600 Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
* Removing custom state definition from FastBitmapDrawableSunny Goyal2017-02-233-0/+50
| | | | | | | > For Fast scrolling, using state list animator defined in xml > For Pressed state, using onState change method in a drawable Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
* Import translations. DO NOT MERGEBill Yi2017-02-2280-0/+320
| | | | | Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f Auto-generated-cl: translation import
* Enabling translation for string relates to Add to homescreen confirmation promptSunny Goyal2017-02-171-2/+2
| | | | | Bug: 34819119 Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
* Merge "Simplifying some launcher themes" into ub-launcher3-masterSunny Goyal2017-02-1726-183/+102
|\
| * Simplifying some launcher themesSunny Goyal2017-02-1626-183/+102
| | | | | | | | | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* | Merge "Import translations. DO NOT MERGE" into ub-launcher3-masterTreeHugger Robot2017-02-174-10/+10
|\ \
| * | Import translations. DO NOT MERGEBill Yi2017-02-164-10/+10
| |/ | | | | | | | | Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3 Auto-generated-cl: translation import
* | Merge "Add notification listener back to the manifest" into ub-launcher3-masterAdam Cohen2017-02-173-0/+64
|\ \
| * | Add notification listener back to the manifestTony2017-02-163-0/+64
| |/ | | | | | | | | | | | | | | | | | | | | This reverts commit d27b65d4d0035d6b66aac3e6040aa791f155e502. Also added boolean to values/ and values-v25/ and values-v26/ to enabled/disable the listener by API version. Bug: 35443111 Bug: 33553066 Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
* / Updating the shortcut preview generation logicSunny Goyal2017-02-161-0/+1
|/ | | | | | | | Drawing a shortcut icon on a white round-rect with shadow Also center aligning the preview Bug: 34819119 Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
* Merge "Updating the default widget preview generation logic" into ↵Sunny Goyal2017-02-095-0/+5
|\ | | | | | | ub-launcher3-master
| * Updating the default widget preview generation logicSunny Goyal2017-02-085-0/+5
| | | | | | | | | | | | | | | | | | We draw a while round rect box which is divided into the cells to represent the widget size. The app icon is drawn in the center for this white box. Bug: 34819119 Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
* | Merge "Updating widget tray theme" into ub-launcher3-masterTreeHugger Robot2017-02-0913-72/+32
|\ \
| * | Updating widget tray themeSunny Goyal2017-02-0913-72/+32
| |/ | | | | | | | | | | | | | | | | | | Using standard theme attributes rather than custom color codes, so that it plays nice with system theme changes. Bug: 34819119 Bug: 34897402 Bug: 21446746 Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
* | Merge "Show notification icon in place of "1" in badge." into ↵Tony Wickham2017-02-071-0/+2
|\ \ | |/ |/| | | ub-launcher3-master
| * Show notification icon in place of "1" in badge.Tony Wickham2017-02-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When notifications update, add the NotificationInfo to the BadgeInfo if there is only one for an app. BadgeRenderer will use the NotificationInfo to get the icon to draw. - When retrieving the icon from the NotificationInfo, we draw it into a shader (similar to MaskableIconDrawable), which is rendered by BadgeRenderer. - For now, we only use the notification icon if it is large. Bug: 34839959 Bug: 32410600 Bug: 33553066 Change-Id: I31851804008dd15bab75d2759441187830c3265e
* | Updating the PreloadIconDrawableSunny Goyal2017-02-0612-20/+22
|/ | | | | | | | | > The drawable gets the path from MaskIconDrawable path, instead of using a circle > The progress changes are animated as well Bug: 34831873 Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
* Merge "Import translations. DO NOT MERGE" into ub-launcher3-masterTreeHugger Robot2017-01-311-1/+1
|\
| * Import translations. DO NOT MERGEBill Yi2017-01-301-1/+1
| | | | | | | | | | Change-Id: I6939381d081f809324360287994fd424dd533f66 Auto-generated-cl: translation import
* | Changes required to use MaskableIconDrawable inside Launcher3Hyunyoung Song2017-01-301-0/+1
|/ | | | | | | | | | | | | This CL will bake the legacy icons inside a grey background Note: There will be follow up CL to change the color and shadow of the legacy icon. The idea of this CL is to first test if MaskableIconDrawable methods and class work properly. Bug: 32063838 Bug: 33553066 Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
* Ensure notification icons have enough contrast with background.Tony Wickham2017-01-271-0/+2
| | | | | | | | | This uses the same color calculations as the system, except that we use the extracted notification background instead of assuming it is white. Bug: 32410600 Change-Id: I7be8b9459ca38d01a6780758898541e69ec42576
* Add swipe-to-dismiss notifications in popup menu.Tony Wickham2017-01-259-2/+244
| | | | | | | | | | | | | | - Next secondary icon animates up to replace dismissed main notification - Add padding around main notification so it always aligns with the straight edges of the view (not the rounded corners); looks more dismissable - Notification view collapses as notifications are dismissed - To mimic system notification behavior, we copy SwipeHelper, FlingAnimationUtils, and Interpolators. We also apply elevation to notifications and reveal a darker color beneath when dismissing. Bug: 32410600 Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
* Refactor DeepShortcutsContainer to PopupContainerWithArrowTony Wickham2017-01-252-3/+3
| | | | | | | | | | | - Also added PopupItemView, which takes animation logic from DeepShortcutView, and which DeepShortcutView now extends. - Renamed ShortcutFilter to PopupPopulator, which has support for new item types (not yet used). Also moved populating logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator. Bug: 32410600 Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
* Fix color for widget tray to match Default.Settings themeFan Zhang2017-01-242-3/+2
| | | | | | Change-Id: Ief4079853a8275a75c27d3c22b57a72a35274307 Fix: 34672511 Test: visual
* Merge "Import translations. DO NOT MERGE" into ub-launcher3-masterTreeHugger Robot2017-01-216-13/+13
|\
| * Import translations. DO NOT MERGEBill Yi2017-01-206-13/+13
| | | | | | | | | | Change-Id: I4be6c1c59d520117f5471af788140d48ca214a31 Auto-generated-cl: translation import
* | Using WidgetCell in the Pin Item confirmation prompt for a consistent UISunny Goyal2017-01-202-32/+17
|/ | | | | | | Also fixing some platform API changes in PinItemRequestCompat Bug: 33584624 Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
* Updating widget preview generation to not embed any badge.Sunny Goyal2017-01-192-4/+3
| | | | | | | | | Instead drawing badge in the view directly. This will allow us to reuse the same preview when we do not want to draw badges. This also simplified badging of shortcut config activities. Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-183-0/+84
| | | | | | | on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
* Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ↵Tony Wickham2017-01-181-0/+4
|\ | | | | | | ub-launcher3-master
| * FastBitmapDrawable can draw an icon badge (notification count)Tony Wickham2017-01-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | - Added BadgeInfo to contain data to be shown in a badge (currently just notification count). - Added BadgeRenderer in DeviceProfile to contain things relevant to drawing the badge, such as size and Paint's. - Added IconPalette to compute colors for the badge based on a dominant color (will also be used for notifications) - FastBitmapDrawable uses these classes to draw the badge. Bug: 32410600 Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
* | Fixes a bug where in Android O the all apps search icon appearsMario Bertschler2017-01-171-1/+1
|/ | | | | | | | | | | | on screen rotation. The fix is by applying a "different" transparent (transparent white instead of transparent black) for the hint color in focus state. The root problem lies in DynamicDrawableSpan and restoring state in EditText if hint color is #000000. Bug: b/34259116 Change-Id: Id3c46b2af4d5cdb18c0510504f2fe66dece7056f
* This enables to slide up All Apps from anywhere in the workspace,Mario Bertschler2017-01-091-2/+0
| | | | | | | | | | not only over the hotseat. The tricky part handling with scrollable widgets is solved by setting requestDisallowInterceptTouchEvent from within the widget view host (and resetting it upon performing long click). Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
* Removing logic around replacing icon during restoreSunny Goyal2017-01-056-142/+0
| | | | | | | | This logic was dependent on key-value based backup. Since we are using full-backup, the appropriate flags are never set. Bug: 18764649 Change-Id: I95a93eee63ac9c82acfb66abfdd1a5407974df46
* Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-1529-89/+9
| | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* Merge "nav bar on all apps container should use light theme. b/33553066 ↵Hyunyoung Song2016-12-121-0/+1
|\ | | | | | | Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2" into ub-launcher3-master
| * nav bar on all apps container should use light theme.Hyunyoung Song2016-12-121-0/+1
| | | | | | | | | | b/33553066 Change-Id: Ic9eb796a01eaa8d00fbeedeb5456876b668e6db2
* | Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" ↵Sunny Goyal2016-12-124-2/+36
|\ \ | | | | | | | | | into ub-launcher3-master
| * | Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-214-2/+36
| |/ | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* / Adding an overridable DrawableFactory to allow creating custom icon drawablesSunny Goyal2016-12-071-0/+3
|/ | | | | | > Adding ItemInfo as a parameter for creating drawable Change-Id: I793acb0381d2b8df4db0a08317dddf1464788ebc
* Hide workspace text in multi-window mode.Jon Miranda2016-11-152-0/+2
| | | | | | | | | * Vertically centers workspace icons. * New iconDisplay value so shortcut text is not overriden. Bug: 32176631 Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
* Merge "Catching TransactionTooLargeException when binding widget." into ↵Sunny Goyal2016-11-151-0/+1
|\ | | | | | | ub-launcher3-master
| * Catching TransactionTooLargeException when binding widget.Sunny Goyal2016-11-091-0/+1
| | | | | | | | | | | | | | | | | | A widget can potentially bypass binder size limit with remote views when using partual updates (as the merging happens on the system service). In such a case, show the widget in error state. Bug: 32365088 Change-Id: Id1c4425958a06463273731464e31f05908c35ec7
* | Refactor edge of screen detection code.Jon Miranda2016-11-071-3/+0
| | | | | | | | | | | | There were two resources that both defined the edge of the screen. Change-Id: I82ab553cc3123ef54ff1f0c692d29f3678ad04ac
* | Scale down folder cells to fit within bounds if necessary.Jon Miranda2016-11-041-1/+0
| | | | | | | | | | | | | | | | | | The number of folder cols/rows are set in InvariantDeviceProfile. Because of this, we may need to scale down the folder cells in multi-window mode. Bug: 32176631 Change-Id: I925d5ac9d29439c5d61cf089e7784065a8cb5ebd
* | Match AllApps start and end paddings.Jon Miranda2016-11-031-0/+1
|/ | | | | | | | | Padding was only on the end to account for the scrollbar. Adding padding to the left allows the icons on AllApps to align with the icons on the workspace. Bug: 32640697 Change-Id: Iced9287979a11afda98bc6bfc926fe87182bee68
* Remove unused code in DeviceProfile.Jon Miranda2016-11-021-2/+0
| | | | Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883
* Center overview panel buttons.Jon Miranda2016-11-021-1/+3
| | | | | Bug: 32313927 Change-Id: Ib6e82b12ef45d2fe59e46b5b2dd8945047eeb981
* Updating the search illustrations to have transparent backgroundSunny Goyal2016-10-205-0/+0
| | | | | Bug: 32234314 Change-Id: If279e97acce6b7522ec587014afab8d48a2296dd