Commit Graph

12216 Commits

Author SHA1 Message Date
Sunny Goyal 2a80dfd0d8 Adding quiet mode support for shortcuts
am: d3b87ef196

Change-Id: I9f782108419525f778936fe61e04073c81881f54
2016-08-01 22:29:20 +00:00
Sunny Goyal 252f595d36 Merge \"Build fix: Updating SDK for tests\" into ub-launcher3-calgary
am: 0843675e93

Change-Id: I0c7863bd507f64b00f1c5d497f56c4ac82064a3a
2016-08-01 17:14:29 +00:00
Sunny Goyal c149bf0b46 Build fix: Updating SDK for tests
am: ec944ad7b0

Change-Id: I1ba91de248e319e01a54bafc252e7a40496dd1ae
2016-08-01 17:14:29 +00:00
Sunny Goyal 0843675e93 Merge "Build fix: Updating SDK for tests" into ub-launcher3-calgary 2016-08-01 17:09:03 +00:00
Sunny Goyal ec944ad7b0 Build fix: Updating SDK for tests
Change-Id: I1377dce808335f65eb0799b7053c84853f57980a
2016-08-01 10:08:27 -07:00
Tony Wickham cbb1f5984e Merge \"Set shortcuts arrow pivot to side connected to container.\" into ub-launcher3-calgary
am: 1460475626

Change-Id: I9bf77425b52b74c3904d5fcb41ef7a233bbc5253
2016-07-30 05:13:19 +00:00
Tony Wickham 706034e85b Set shortcuts arrow pivot to side connected to container.
am: 4d5887bd8c

Change-Id: I677309debc91c5a7af3dece0e076cc9182c1c7d4
2016-07-30 05:13:19 +00:00
Sunny Goyal 11177ac928 Merge \"Badging shortcuts with app icons\" into ub-launcher3-calgary
am: 66d17ca32d

Change-Id: I726a35f9267c2e1561a6da91eff77a32a07b772b
2016-07-30 05:13:18 +00:00
Sunny Goyal a4c7c13e2a Badging shortcuts with app icons
am: 79cf718fcd

Change-Id: I970ef85a1b6296d7f6d1387d5d7e283ef3ab6639
2016-07-30 05:13:18 +00:00
Tony Wickham 1bd6a5b6f8 Filter shortcuts down to 4 if there are more.
am: c39edf54e6

Change-Id: Ib5374fb977b53242faac4f759f9d5cee7d9c618e
2016-07-30 05:13:17 +00:00
Tony Wickham 1460475626 Merge "Set shortcuts arrow pivot to side connected to container." into ub-launcher3-calgary 2016-07-30 00:04:14 +00:00
Tony Wickham 4d5887bd8c Set shortcuts arrow pivot to side connected to container.
Bug: 30508528
Change-Id: Iddc733d79b680010785d21b347d151bc23bffc23
2016-07-29 16:34:17 -07:00
Sunny Goyal 66d17ca32d Merge "Badging shortcuts with app icons" into ub-launcher3-calgary 2016-07-29 23:14:51 +00:00
Tony Wickham c39edf54e6 Filter shortcuts down to 4 if there are more.
- We take the first 4 in sorted order, except we remove up to 2
  static shortcuts to make room for dynamic ones if they exist.
- Added ShortcutFilterTest with testSortAndFilterShortcuts().
  This asserts that the filtered list is sorted and has the
  expected number of static and dynamic shortcuts based on
  inputs with various amounts of each.

Bug: 28980830
Change-Id: I832b6b21144f17c74bb8b90a840d6620e99911b8
2016-07-29 16:10:43 -07:00
Sunny Goyal d3b87ef196 Adding quiet mode support for shortcuts
> LauncherApps returns empty list when the user is locked. Not relying on
LauncherApps in this case
> When the user is locked, removing all dynamic shortcuts
> Loading shortcuts from DB when the user is locked
> Verifying the shortcuts again when the user is available

Bug: 30411561
Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb
2016-07-29 16:10:31 -07:00
Sunny Goyal 79cf718fcd Badging shortcuts with app icons
Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1
2016-07-29 16:06:36 -07:00
Hyunyoung Song 0cb41fbb8d Merge \"Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS b/29645452\" into ub-launcher3-calgary
am: 72dc60c576

Change-Id: Ida309677c84d067f012841aa9edeb21ec03594fe
2016-07-29 21:38:30 +00:00
Hyunyoung Song 59272eba29 Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS b/29645452
am: 06ca7568c6

Change-Id: I17e8718fc30f3afe405b85095f30818e2369bd2f
2016-07-29 21:38:30 +00:00
Hyunyoung Song 72dc60c576 Merge "Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS b/29645452" into ub-launcher3-calgary 2016-07-29 21:32:48 +00:00
Hyunyoung Song 06ca7568c6 Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS
b/29645452

By cancelling the runnable, we are enabling transition:
state1 -> state3 instead of state1-> state2-> state3.
Transition state1->state3 is a viable transition that is
supported by our model.

        Launcher           Workspace
--------------------------------------------
state1  APPS_SPRING_LOADED SPRING_LOADED
state2  WORKSPACE          NORMAL
state3  APPS               NORMAL_HIDDEN


Change-Id: If27905567efe439324494e0091a4b42fcbf01448
2016-07-29 13:03:54 -07:00
Winson 3d00028c63 Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgary
am: c42087e5c0

Change-Id: Ic169d18dab27357283b16dd1d705821052874b38
2016-07-29 05:56:08 +00:00
Winson 907da97059 Working around incorrect wallpaper offsets being calculated in RTL.
am: c7d2e83c15

Change-Id: I6477d7e7ed8686c8ccc5deab06621dc6496351e1
2016-07-29 05:56:06 +00:00
Winson 37fbc6dbf9 Fixing RTL wallpaper scrolling.
am: d96fa13369

Change-Id: Iad37d794d8d22ec178888e20fb97b117b3de22b8
2016-07-29 05:56:04 +00:00
Winson Chung c42087e5c0 Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgary
* changes:
  Working around incorrect wallpaper offsets being calculated in RTL.
  Fixing RTL wallpaper scrolling.
2016-07-29 05:49:20 +00:00
Bill Yi d9cc08d505 Import translations. DO NOT MERGE am: 3c654c199e -s ours
am: fdaa46fb50  -s ours

Change-Id: Ie03014fa0180bbfc1636b7362dc040c72e41828a
2016-07-29 04:15:28 +00:00
Bill Yi fdaa46fb50 Import translations. DO NOT MERGE
am: 3c654c199e  -s ours

Change-Id: I509897896e4a9930da187f4f2270050063073d46
2016-07-29 04:12:28 +00:00
Bill Yi b734dcdd9d Merge \"Import translations. DO NOT MERGE\" into ub-launcher3-calgary
am: bf6e01ced5  -s ours

Change-Id: I00e17922016c5ff66d433948e4e294fc530e5121
2016-07-29 04:12:28 +00:00
Bill Yi 9f9c05e7a8 Import translations. DO NOT MERGE
am: 6c5025a9f5  -s ours

Change-Id: Icc53bd9754405e04fb6e639afae16c3ea805738c
2016-07-29 04:12:28 +00:00
TreeHugger Robot bf6e01ced5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-07-29 04:04:30 +00:00
TreeHugger Robot 8577a17791 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-07-29 04:04:11 +00:00
Bill Yi a21401ad9e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30413963
Change-Id: Ia648babe5145a5d82113993a4bc408e4e0b8c23f
2016-07-28 18:58:07 -07:00
Bill Yi 6c5025a9f5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30413963
Change-Id: I356f01214564a37fd27810a4bbd51a433ef5514d
2016-07-28 18:52:23 -07:00
Tony Wickham 864e1f926b Merge \"Prevent opening shortcuts container if one is already open.\" into ub-launcher3-calgary
am: 6257bc327b

Change-Id: I770e0fcd8b7c82776137467a1419a559defbd58f
2016-07-29 01:33:48 +00:00
Tony Wickham d5f5433f55 Prevent opening shortcuts container if one is already open.
am: 8141d63ed1

Change-Id: I0263738c17b069edc7295f67f1f5b00e1bfeae0d
2016-07-29 01:33:48 +00:00
Bill Yi 3c654c199e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30413963
Change-Id: I1ddbf2a7fc380ae4cc7a4273370d47fae1122b07
2016-07-28 18:29:11 -07:00
Tony Wickham 6257bc327b Merge "Prevent opening shortcuts container if one is already open." into ub-launcher3-calgary 2016-07-29 01:14:22 +00:00
Peter Schiller f8e1af6b0a Update fast scroll shadow to match other shadows
am: 62d7023639

Change-Id: I605425b5335b7586ad3e047548b48d0669829e21
2016-07-29 00:49:55 +00:00
Peter Schiller 62d7023639 Update fast scroll shadow to match other shadows
Change-Id: Ia19f64b8c3b5a09a11909f2792e3c0956a0dc1cd
2016-07-28 16:58:06 -07:00
Winson c7d2e83c15 Working around incorrect wallpaper offsets being calculated in RTL.
- When launcher starts up, onCreate() triggers the launcher model loader
  to start, which calls bindScreens() to add the workspace pages.  
  However, layout does not happen until the device is unlocked, which 
  means that even though the default screen index and children are there
  the page scrolls are calculated incorrectly, and even in RTL, the 
  page scroll for the 0th screen is zero (it should be at the right
  most edge of the workspace).  This CL works around this by deferring 
  until the first layout after bindScreens() to unlock the wallpaper
  offset from its default bounds.  The workaround is only applied when 
  the launcher activity is first created.

Bug: 28795125
Change-Id: I33da0d7f934f5337d26e69f068f579a32897a837
2016-07-28 16:21:20 -07:00
Winson d96fa13369 Fixing RTL wallpaper scrolling.
- Ensure that we map the scroll offsets to the full wallpaper offset 
  range
- Default to either edge of the wallpaper (depending on RTL) to match
  the default system wallpaper behavior (ag/1265418)

Bug: 28795125
Bug: 29398681
Change-Id: I36c316095057912d2dda0beb43bd1e6aaeac3fdc
2016-07-28 16:05:47 -07:00
Hyunyoung Song 8c89b21891 Merge \"Responsive caret drawable\" into ub-launcher3-calgary
am: 7da6d00c2e

Change-Id: Ie19a222ada005fdfeb30c1cd3740c90358e4ba82
2016-07-28 21:24:01 +00:00
Hyunyoung Song a5677d03ec Responsive caret drawable
am: 7ccc4625e3

Change-Id: I455ba4700aceb09b06f71ededf196f15abee6831
2016-07-28 21:24:01 +00:00
Peter Schiller 7da6d00c2e Merge "Responsive caret drawable" into ub-launcher3-calgary 2016-07-28 21:18:37 +00:00
Hyunyoung Song 7ccc4625e3 Responsive caret drawable
Change-Id: I9d40052d001c80d99db511af6134227f8e4e4239
2016-07-28 13:06:21 -07:00
Tony Wickham efe50c881e Only add shortcuts to the deep shortcut map if they are dynamic/manifest.
am: ca258b36be

Change-Id: Ib93bedbe81fa2cd515c18e5f575dad66c4c6a609
2016-07-28 20:03:09 +00:00
Sunny Goyal 52facfef5c Merge \"Showing the shortcuts in the disabled state and removing ti from the menu when its disabled\" into ub-launcher3-calgary
am: 55f5bd730c

Change-Id: I94d2deab5f6d0ba40965185d4132cb41ab340069
2016-07-28 19:32:08 +00:00
Sunny Goyal 330dbb4f28 Showing the shortcuts in the disabled state and removing ti from the menu when its disabled
am: 70a7c9b700

Change-Id: I081687401817e617d02b2be5abd8492493b1404f
2016-07-28 19:32:08 +00:00
Sunny Goyal 36ace79326 Merge \"Fading in the first screen, when launcher loads for the first time\" into ub-launcher3-calgary
am: e34dd33156

Change-Id: Ib1e7f37e300c67c093fe9870cdc67b91dee0e00d
2016-07-28 19:32:07 +00:00
Sunny Goyal d1d75971db Fading in the first screen, when launcher loads for the first time
am: b5b9ad68b7

Change-Id: I482f291347ff891f674002f0db7241a88abc6c0c
2016-07-28 19:32:07 +00:00
Tony Wickham ca258b36be Only add shortcuts to the deep shortcut map if they are dynamic/manifest.
Bug: 30475465
Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b
2016-07-28 12:31:28 -07:00