Commit Graph

4985 Commits

Author SHA1 Message Date
Sunny Goyal 2d2b42ba3c resolve merge conflicts of 39b700fcc5 to ub-launcher3-master.
Change-Id: I394258be0c75289cab2f5141c0fb765504527420
2015-12-04 10:04:54 -08:00
Tony Wickham 9ec6d402fa Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polish
am: b88d0bccbe

* commit 'b88d0bccbe997e5c45c930698e37f52865bd9210':
  Cleanup keyboard code.
2015-12-04 18:01:51 +00:00
Sunny Goyal 39b700fcc5 Merge "Normalizing app icons based on the standard icon guidelines" into ub-launcher3-burnaby-polish 2015-12-04 17:56:04 +00:00
Tony Wickham b88d0bccbe Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polish 2015-12-04 17:55:33 +00:00
Tony Wickham 329d8bfa04 Cleanup keyboard code.
This should be the last keyboard CL.
- Fix bug: couldn't focus All Apps button in some cases when the All
Apps column was skipped over. Also added test case for this.
- Stop explicitly passing countX and countY to handleKeyEvent, as
these had to match the matrix dimensions anyways.
- Rename createSparseMatrix() - there were 3 methods of the same name,
but all had different purposes. This is confusing both from a
readability standpoint and also when looking at stack traces.

Change-Id: I08ba8411674fcea43a608856c114dee8dbd22398
2015-12-04 09:48:17 -08:00
Tony Wickham 0593f348b9 Hide the focus indicator view when going to a fullscreen page.
am: 62b9b6054e

* commit '62b9b6054e46074f57ccf156a8663b4392cd82d9':
  Hide the focus indicator view when going to a fullscreen page.
2015-12-03 22:52:03 +00:00
Tony Wickham 62b9b6054e Hide the focus indicator view when going to a fullscreen page.
Bug: 25649853
Change-Id: I9f2f221020548b48d816924a1803a1a70d11c412
2015-12-03 14:47:52 -08:00
Tony Wickham 580ff475e0 Fullscreen pages (e.g. Now) are focusable via keyboard.
am: 0fa5ada226

* commit '0fa5ada2261a29ad9be7195c8cdb8cb50bdd0742':
  Fullscreen pages (e.g. Now) are focusable via keyboard.
2015-12-03 22:34:43 +00:00
Tony Wickham 0fa5ada226 Fullscreen pages (e.g. Now) are focusable via keyboard.
Change-Id: I962551651aeb9ac7b57bb51b195adc3140db30d8
2015-12-03 14:27:55 -08:00
Tony Wickham b90a9761ae Make sure pages are always accessible via left/right arrow keys.
am: af78b59af1

* commit 'af78b59af19264105b8ce856defa5342d6fd584a':
  Make sure pages are always accessible via left/right arrow keys.
2015-12-03 22:23:11 +00:00
Tony Wickham af78b59af1 Make sure pages are always accessible via left/right arrow keys.
- Handle NextPageFirstItem as first focusable item in reading order
- Handle PreviousPageLastItem as last focusable item in reading order
- Check the hotseat after the workspace in both cases above
- Dpad horizontal navigation (left/right) uses these as a last
  resort (Rule3) to guarantee an item takes focus if a page exists

Note that it is necessary to search for a focusable item because
widgets are not yet focusable.

Bug: 25591057
Change-Id: I953648bd76c657d660a38427fdd4108bf9963c23
2015-12-03 14:18:06 -08:00
Tony Wickham 800550d63f Merge "Add special column for All Apps button in FocusLogic\'s sparse matrix." into ub-launcher3-burnaby-polish
am: b879abd274

* commit 'b879abd2747c1c1473c8d2b9d9c97707da8218f3':
  Add special column for All Apps button in FocusLogic's sparse matrix.
2015-12-03 20:45:25 +00:00
Tony Wickham b879abd274 Merge "Add special column for All Apps button in FocusLogic's sparse matrix." into ub-launcher3-burnaby-polish 2015-12-03 20:41:28 +00:00
Sunny Goyal fc21830e6b Normalizing app icons based on the standard icon guidelines
Bug: 18245189
Change-Id: Iaadcddbe3f966733a13b2e1fb60ba09a8b3aef9a
2015-12-02 19:46:36 -08:00
Sunny Goyal aa4011e63e Merge "Scaling down the icon before applying the user badge > This also saves memory only create one new bitmap while loading instead of two" into ub-launcher3-burnaby-polish 2015-12-03 03:25:21 +00:00
Tony Wickham ff6a81508f Merge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby-polish
am: ac929f4ad8

* commit 'ac929f4ad80fabeddfae51e30ec5d7ff434652c8':
  Disallow scrolling if workspace is in transition.
2015-12-02 23:18:22 +00:00
Tony Wickham ac929f4ad8 Merge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby-polish 2015-12-02 23:11:09 +00:00
Sunny Goyal 4740e6ce15 Merge "Keeping the focus indicator on the widget view, while a child is focused" into ub-launcher3-burnaby-polish
am: 093a58cc77

* commit '093a58cc776be2a3cd5aed9d14df9c78a35af052':
  Keeping the focus indicator on the widget view, while a child is focused
2015-12-01 23:36:37 +00:00
Sunny Goyal 093a58cc77 Merge "Keeping the focus indicator on the widget view, while a child is focused" into ub-launcher3-burnaby-polish 2015-12-01 23:19:11 +00:00
Sunny Goyal cc4c22008c Adding margin to Drag layer instead of checking for right insets at every place
am: 9326461652

* commit '9326461652c36c2ddd888d1452cf7f075a391868':
  Adding margin to Drag layer instead of checking for right insets at every place
2015-12-01 22:49:42 +00:00
Sunny Goyal 9326461652 Adding margin to Drag layer instead of checking for right insets at every place
Bug: 25692432
Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752
2015-12-01 14:43:32 -08:00
Sunny Goyal 0c4e37223f Keeping the focus indicator on the widget view, while a child is focused
Bug: 25199581
Change-Id: Ie08d1438ae0c1b5d4fcaa4d642508c1b9db0f5d4
2015-12-01 14:38:14 -08:00
Sunny Goyal dc893151f0 resolve merge conflicts of 0c2f0700a5 to ub-launcher3-master.
Change-Id: I92f38e9f4ac4d9b6c5a3000e0971d2bc417bd3c6
2015-11-30 10:19:02 -08:00
Sunny Goyal 0c2f0700a5 Only fetching firstInstallTime for an activity when required
Change-Id: Ia16c05718938849f4250802d8770ddfe6dbef055
2015-11-30 09:51:39 -08:00
Sunny Goyal 0b621156f3 Scaling down the icon before applying the user badge
> This also saves memory only create one new bitmap while loading instead of two

Bug: 25027252
Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f
2015-11-25 11:25:25 -08:00
Sunny Goyal b23bb416d0 Merge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish
am: d007d0722c

* commit 'd007d0722c782266f494806e750c24208d6d3ca5':
  Allowing widgets to be focusable
2015-11-25 18:15:56 +00:00
Sunny Goyal d007d0722c Merge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish 2015-11-25 18:10:56 +00:00
Tony Wickham 2ef6abc091 Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish
am: 6e83dc4031

* commit '6e83dc4031b78ac6e65102b2d936e9e769686fec':
  Skip to the end of the folder open animation in battery saver mode.
2015-11-25 00:06:14 +00:00
Tony Wickham 6b14c150f6 Don\'t let folder be replaced with final item twice.
am: 1a690cb785

* commit '1a690cb785a1b1644ad4c97e8b755528b2222cfc':
  Don't let folder be replaced with final item twice.
2015-11-25 00:06:08 +00:00
Tony Wickham 6e83dc4031 Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish 2015-11-25 00:02:12 +00:00
Tony Wickham 1a690cb785 Don't let folder be replaced with final item twice.
Bug: 25732317
Change-Id: I77b3ddc8951583bebfb908fda934c9b80ddebce0
2015-11-24 15:34:53 -08:00
Sunny Goyal 0c34443406 resolve merge conflicts of 7bce5f7988 to ub-launcher3-master.
Change-Id: Id352ce219bed7701956bb462ea2dd0a5aebe7317
2015-11-24 13:12:32 -08:00
Sunny Goyal 7bce5f7988 Tying LauncherAppState lifecycle with LauncherProvider
The content provider is the first component started with the main process,
which makes it ideal for initiating LauncherAppState

Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15
2015-11-24 12:06:42 -08:00
Sunny Goyal ed3563a279 Merge "Setting statusbar and nav bar colors in theme instead of code" into ub-launcher3-burnaby-polish
am: 4ee66259eb

* commit '4ee66259eb7835bfcf3747596e068319e1e3c677':
  Setting statusbar and nav bar colors in theme instead of code
2015-11-23 18:48:37 +00:00
Tony Wickham ebaf95fee7 Merge "Focus doesn\'t leave folders without also closing them." into ub-launcher3-burnaby-polish
am: 298f1c4578

* commit '298f1c4578e45168e74aa4b8561fcd88bfe509fe':
  Focus doesn't leave folders without also closing them.
2015-11-23 18:48:28 +00:00
Sunny Goyal 4ee66259eb Merge "Setting statusbar and nav bar colors in theme instead of code" into ub-launcher3-burnaby-polish 2015-11-23 18:45:41 +00:00
Tony Wickham 298f1c4578 Merge "Focus doesn't leave folders without also closing them." into ub-launcher3-burnaby-polish 2015-11-23 18:43:21 +00:00
Tony Wickham feec2171f8 Focus doesn't leave folders without also closing them.
- Pressing Tab wraps around to the first item from the folder name,
  and vice versa when pressing Shift+Tab.
- When tapping off the folder while editing the text, the folder
  requests focus. We handle the following cases from that state:
    - Pressing an arrow key or Tab gives focus to the first item.
    - Pressing Shift+Tab gives focus to the last item.
- Fix slight corner case where moving from folder name to an item
  didn't update mIsEditingName to false. So when clicking off of
  the folder, it gave focus to the folder (as mentioned above)
  instead of closing the folder like it usually does when icons are
  focused. Not a huge deal, but still worth fixing.
Bug: 25687579
Change-Id: I1bec844c8ccd09529a11b9e3a1d92b3bdf7b2eb3
2015-11-20 15:08:55 -08:00
Tony Wickham a5209e33fc Disallow scrolling if workspace is in transition.
Because going to overview mode scales down the workspace, it was
thinking the touch was moving even though your finger was still. If
the "movement" was large enough, it was treated as a scroll, causing
jank. This was especially prevalent on tablets due to their size.

Bug: 25779718
Change-Id: Idb7833e0087bd24ca840f6afc451bf221f6bc047
2015-11-19 12:45:30 -08:00
Tony Wickham 667e4a6ad2 Merge "Stop requesting focus on folder if it was closed without animating." into ub-launcher3-burnaby-polish
am: 55bd16bfdc

* commit '55bd16bfdce57772691519fb894b95c7f088846e':
  Stop requesting focus on folder if it was closed without animating.
2015-11-19 00:47:26 +00:00
Tony Wickham 55bd16bfdc Merge "Stop requesting focus on folder if it was closed without animating." into ub-launcher3-burnaby-polish 2015-11-19 00:36:20 +00:00
Tony Wickham 30bdd6eb69 Stop requesting focus on folder if it was closed without animating.
Bug: 25092436
Change-Id: Ia6b72ec8c9fa02fc159457b81fef12f6fd394769
2015-11-18 02:08:22 +00:00
Sunny Goyal fb5a4d843e Fixing crash when uninstalling an app destroys the folder
am: b9c29d455e

* commit 'b9c29d455e301d1b31b911a37eb3bec7e0e16865':
  Fixing crash when uninstalling an app destroys the folder
2015-11-16 04:47:01 +00:00
Sunny Goyal b9c29d455e Fixing crash when uninstalling an app destroys the folder
Bug: 25666490
Bug: 25677822
Change-Id: Id71c04df0a5546ba95239ba2e3f7aabb697375a4
2015-11-14 18:09:20 +05:30
Tony Wickham ec73dd97f0 Revert "Revert "Reverting folder cell width on portrait phones.""
am: 6159c242bc

* commit '6159c242bc610f13e4c7550ae8b15f25603f4b23':
  Revert "Revert "Reverting folder cell width on portrait phones.""
2015-11-13 18:10:57 +00:00
Tony Wickham 6159c242bc Revert "Revert "Reverting folder cell width on portrait phones.""
This reverts commit 1974e98f5e.

Change-Id: I7c5d86de187989c085f676933ce3f1cbd57ed8a7
2015-11-13 18:07:18 +00:00
Tony Wickham 0309fbc65f Revert "Reverting folder cell width on portrait phones."
am: 1974e98f5e

* commit '1974e98f5ec4713e50ba64ec32a7607c92ddce9b':
  Revert "Reverting folder cell width on portrait phones."
2015-11-12 23:52:34 +00:00
Tony Wickham 1974e98f5e Revert "Reverting folder cell width on portrait phones."
This reverts commit b25e684a76.

Change-Id: Ie86adc4b35c73ab7ef78d73225b437adc4751172
2015-11-12 23:46:33 +00:00
Tony Wickham 79b4194765 Reverting folder cell width on portrait phones.
am: b25e684a76

* commit 'b25e684a766362422f5693f7a2189910c1275584':
  Reverting folder cell width on portrait phones.
2015-11-12 23:41:06 +00:00
Tony Wickham b25e684a76 Reverting folder cell width on portrait phones.
The extra folder cell space added in ag/790800 looks bad on phones in
portrait mode, so reverting it here. However, we keep the extra space
on tablets or phones in landscape mode, since it provides more room
for long app names (bug 22462641).

Bug: 25662215
Change-Id: I2a37b884458ee557c9b8cff0c3edef16bfc50efb
2015-11-12 15:34:59 -08:00