Commit Graph

17718 Commits

Author SHA1 Message Date
Bill Yi 6d622b7c96 Import translations. DO NOT MERGE
Change-Id: I6213e19ec4099e89ab27cc0d114e301d2785f9fd
Auto-generated-cl: translation import
2018-12-27 09:55:53 -08:00
TreeHugger Robot 3446fb65c4 Merge "Cleanup strings for iconoverride" into ub-launcher3-master 2018-12-27 06:30:39 +00:00
Hyunyoung Song 339a311d99 Cleanup strings for iconoverride
Bug: 120736782
Change-Id: I9745fe999cec3c4e1f442decb482ed916d0b871a
2018-12-26 20:59:57 -08:00
Tony Wickham 79e70c3a82 Merge changes Ia9df40ae,Ieeaa5b66 into ub-launcher3-master
* changes:
  Move params for ClipAnimationHelper#applyTransform into TransformParams
  TaskView has fullscreen progress instead of boolean
2018-12-22 00:15:09 +00:00
Tony Wickham f5c3cddd05 Merge "When undoing a removal, always return to the page it came from" into ub-launcher3-master 2018-12-22 00:14:42 +00:00
Tony Wickham c87388c00d Move params for ClipAnimationHelper#applyTransform into TransformParams
This will help keep the code clean when we add more params, e.g. for
live tiles and for the scrolling gesture.

Bug: 111699315
Change-Id: Ia9df40ae85fe29911b957bd9b06b8c8a31f3be39
2018-12-22 00:04:29 +00:00
Tony Wickham 36b2dba1de TaskView has fullscreen progress instead of boolean
This way we can update the insets of the adjacent task throughout
the swipe up from an app.

Bug: 111699315
Change-Id: Ieeaa5b6667e44f82e7e097acb9f0552609b15809
2018-12-21 15:49:45 -08:00
Bill Yi 7332cddb39 Import translations. DO NOT MERGE
Change-Id: Ifac82f65480a8f5405b7250297945fb296a1fe5b
Auto-generated-cl: translation import
2018-12-21 15:33:28 -08:00
Tony f80e893163 When undoing a removal, always return to the page it came from
We were already returning to the current page, but this wasn't
always right, e.g. when removing the last item on the last page.
So now we mark the page the item was removed from, and bind that
page first when undo is clicked.

This also addresses an issue where we incorrectly returned to the
first page if currentPage = INVALID_RESTORE_PAGE, which happens if
there are no items on the first page.

Bug: 118846684
Change-Id: I4ec1f64b24ba1cc308ce08bfb3111b5981fae99b
2018-12-21 12:21:53 -08:00
Hyunyoung Song c641bd107c Provide more context for "Remove" and "Uninstall" strings for TC
Bug: 120255489
Change-Id: Iec1d93e1aab0bae38d95e9f4e2c87e9328f04da3
2018-12-21 11:01:27 -08:00
Tony 1e0e558cbf Update Launcher3 Go device profile format
Bug: 121044483
Change-Id: I1aa18a8f4a8969e1349c0930e06413b6a2af4ed1
2018-12-20 11:29:24 -08:00
Hyunyoung Song a7a9583bb8 Remove IconShapeOverride
Bug: 120736782
Change-Id: Iee44f10ff2b9ec447ae74d9ad6a0aa3668c401d6
2018-12-19 17:16:56 -08:00
TreeHugger Robot afe57dd0ef Merge "Add a secondary launcher activity (1/2)" into ub-launcher3-master 2018-12-20 00:28:57 +00:00
vadimt 943b28464d Test swiping up from a killed launcher
Bug: 121164587
Test: StartLauncherViaGestureTests
Change-Id: I01c5bfc0aa23418bad7d44b8d9cf8b95cbe0b320
2018-12-17 18:09:07 -08:00
Vadim Tryshev 57e98b8006 Merge "Adding tests that would reliably reproduce shifted search." into ub-launcher3-master 2018-12-17 23:21:55 +00:00
vadimt 00d4255272 Adding tests that would reliably reproduce shifted search.
This would guaranteed to repro b/118441555 before it was fixed.

The test doesn't use the most powerful feature of race condition
reproducer, which is enumerating all possible event sequences.

Instead, it uses explicit repro sequences, which makes the test much
faster.

Bug: 120628042
Test: The added test
Change-Id: I89a7a9964f160a8a20ba3d9dda2f248237713014
2018-12-17 14:41:20 -08:00
Tony Wickham bf560728c1 Merge "Remove notification dot if app is disabled" into ub-launcher3-master 2018-12-14 00:10:24 +00:00
Vadim Tryshev 1ebf6f5d77 Merge "Not relying on activity manager when choosing a touch consumer." into ub-launcher3-master 2018-12-13 21:33:05 +00:00
vadimt 195d5694e4 Not relying on activity manager when choosing a touch consumer.
Activity manager can report launcher activity as running when is hasn't
yet been resumed.

Bug: 120628042
Test: TaplTests, Fallback tests, manual tests
Change-Id: I6b382b17d05066a63360acc19e094674ecca7130
2018-12-13 12:41:53 -08:00
vadimt d177aba4a2 Fixing ConcurrentModificationException
Bug: 120664974
Test: Manual
Change-Id: I67e88c6980fbabb9afb9f4946baf731852f19b19
2018-12-13 11:53:56 -08:00
Chilun 3516bd89d9 Add a secondary launcher activity (1/2)
This secondary launcher activity with new category SECONDARY_HOME and
multiple instance supporrted could be used on sencondary display.

Bug: 118206886
Bug: 114329798
Test: Manual
Change-Id: Ibaecf8ef7614389760d0fcc547ef6d378a921583
2018-12-13 09:21:47 +00:00
Winson Chung 381a75c194 Fix issue with sync rt applier
- Use the shared lib call to ensure that we always have the sync rt
  applier with viewroot.

Change-Id: I911362d105a2c0223693640a28d358caf6dd29d0
2018-12-11 13:04:38 -08:00
TreeHugger Robot 345273b6a5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-12-11 19:02:34 +00:00
Bill Yi 80f5c19fd2 Import translations. DO NOT MERGE
Change-Id: I1539df9cc5f5633585a5714fc8069163d7edb951
Auto-generated-cl: translation import
2018-12-11 10:47:07 -08:00
Winson Chung 282ad21f71 Fix issue with swipe up animation stalling after swiping up
- When the launcher activity is killed, the next init will attempt to
  create a sync applier, which uses the ViewRootImpl of the target
  view. But when onActivityInit() is called, the recents view has not
  been attached to the hierarchy so the view root is not accessible.
  The SyncRtSurfaceTransactionApplier also ignores scheduling all
  updates when it has a non-existant view root, which leads to the
  app surface getting stuck midway during a swipe up (only affects the
  duration of the animation)

Bug: 119661847
Test: adb shell am force-stop com.google.android.apps.nexuslauncher
      then try and swipe up slowly

Change-Id: I8eef9fe38c55c0cb438d63b41c335f78679278a3
2018-12-10 19:08:44 -08:00
Lucas Dupin b93e419e8b Speed up corner animation
The size of the window changes during the animation progress, making the
window look rounded for longer. What we want is to animate it from the
shape of the icon to the shape of the display.

Change-Id: Ib4889b697bf78cdc37c160130fde961650080fb7
Fixes: 120553563
Test: visual
2018-12-11 00:03:54 +00:00
Sunny Goyal 5469fad289 Merge "Bye bye workspace screens table" into ub-launcher3-master 2018-12-10 21:25:18 +00:00
Sunny Goyal c5939393a9 Bye bye workspace screens table
Removing a separate table for workspace screens. List of screens are
automatically parsed using the items in the favorites DB. Order of the
screen based on the screen id and rearranging screens is no longer
supported. In case the screens need to be rearranged, all the items
in the favorites db will need to be updated with new screen ids.

This makes backing up the DB (in the same database) easier as only
one table needs to be duplicates.

Change-Id: I8ba947a898f637d780e2f49925e78604263126e8
2018-12-10 11:43:35 -08:00
TreeHugger Robot ee6e6ea4b6 Merge "Moving TaplTests to AOSP" into ub-launcher3-master 2018-12-10 18:33:57 +00:00
Vadim Tryshev ed01e28408 Moving TaplTests to AOSP
And fixing TAPL for AOSP.

Bug: 110103162
Test: TaplTests
Change-Id: Ib9fef02b789a9c7444643550d56b9dda4e085b03
2018-12-07 12:00:41 -08:00
Sunny Goyal 415f173331 Changing the format for device profile definition
Device profiles are defined such that the grid size is fixed
and only the icon and text sizes change. For every grid size option
there are multiple display configurations.

Bug: 118758696
Change-Id: I54aac9106c576324b02530913c447e849b4ae1da
2018-12-07 00:06:25 -08:00
TreeHugger Robot dab230f63c Merge "Add framework for reliably reproducing race conditions." into ub-launcher3-master 2018-12-07 07:14:01 +00:00
Vadim Tryshev 0d4ac57128 Add framework for reliably reproducing race conditions.
Bug: 120628042
Test: RaceConditionReproducerTest
Change-Id: Id658e2b0da6af186b76501ff16edbd135dda3c9b
2018-12-06 16:11:18 -08:00
Winson Chung affe2bc261 Merge "Revert "Revert "Specify display ID while calling getNavBarPosition()""" into ub-launcher3-master 2018-12-06 19:58:25 +00:00
Winson Chung 5466f284f3 Merge changes from topic "rounded_corners_ub_launcher" into ub-launcher3-master
* changes:
  Revert "Revert "Correct 🕳️ 👊👊👊👊👊👊""
  Revert "Revert "Rounded corners on app transitions""
2018-12-06 19:58:25 +00:00
Winson Chung 54228d70b4 Merge "Revert "Revert "Updating shared lib for rounded corners.""" into ub-launcher3-master 2018-12-06 19:58:25 +00:00
Winson Chung 995478aee3 Revert "Revert "Correct 🕳️ 👊👊👊👊👊👊""
This reverts commit 33226ec0e1.

Reason for revert: Most test devices have the platform changes

Change-Id: Ic3f1c144537d127c690c7949f7144dedf0611c49
2018-12-06 19:37:16 +00:00
Winson Chung 506565aaa0 Revert "Revert "Specify display ID while calling getNavBarPosition()""
This reverts commit 5859f7d62c.

Reason for revert: Most test devices have the platform changes

Change-Id: I86b61f07f873e0d231aaac322001065730436233
2018-12-06 19:37:01 +00:00
Winson Chung 5f593c382f Revert "Revert "Updating shared lib for rounded corners.""
This reverts commit de72d339e5.

Reason for revert: Most test devices have the platform changes

Change-Id: Ibe7e22c5073f2405483945ac726e528bef88fbc9
2018-12-06 19:36:52 +00:00
Winson Chung c7565862e2 Revert "Revert "Rounded corners on app transitions""
This reverts commit 2c9b1043a6.

Reason for revert: Most test devices have the platform changes

Change-Id: I1e608395b186df3148562afa7c1d791e3c9e2eb5
2018-12-06 19:36:10 +00:00
TreeHugger Robot edbf4cf0bb Merge "Fixing widget entering drag mode when clicked on an empty area" into ub-launcher3-master 2018-12-06 17:41:00 +00:00
TreeHugger Robot 0cbe34b297 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-12-06 17:11:12 +00:00
Bill Yi c4e957cb9b Import translations. DO NOT MERGE
Change-Id: Ica50c5055efc0de3a9783184977b7d8f78441bf1
Auto-generated-cl: translation import
2018-12-06 07:47:42 -08:00
Sunny Goyal 25849b0a27 Fixing widget entering drag mode when clicked on an empty area
Bug: 119623336
Change-Id: I9e2281f57f07d98a414febb1e3052cb89ef5cb60
2018-12-06 04:02:07 -08:00
Vadim Tryshev 4463cd242c Merge "Desaturating thumbnails for tasks over their usage limit" into ub-launcher3-master 2018-12-06 01:19:24 +00:00
Vadim Tryshev 2e8205d3f9 Desaturating thumbnails for tasks over their usage limit
Bug: 118319143
Test: Manual
Change-Id: Iae78c42fb392a49d734d35a80f6331438149d458
2018-12-05 17:08:24 -08:00
Tony Wickham e2c724204e Merge "Remove some obsolete notification badging code" into ub-launcher3-master 2018-12-05 21:20:14 +00:00
Tony Wickham 7120490595 Merge "Rename "badges" to "dots" where appropriate" into ub-launcher3-master 2018-12-05 21:19:57 +00:00
Sunny Goyal c6726f5c36 Merge "Adding support for launcher preview generation" into ub-launcher3-master 2018-12-05 09:10:17 +00:00
Sunny Goyal ef92b82778 Adding support for launcher preview generation
Creating a utility class which generates a launcher preview
for a provided InvariantDeviceProfile

Bug: 118758696
Change-Id: I0aebeb6eed37f72edd1cc305e58eece305aae3ff
2018-12-04 20:19:14 -08:00