Commit Graph

4780 Commits

Author SHA1 Message Date
Hyunyoung Song 5cc55a143a Merge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby-polish 2016-03-01 19:58:45 +00:00
Hyunyoung Song 3e840f4343 Prevent work profile widget DnD crash
b/26079469

Change-Id: I3d49ac498bbaaef8ca8a3051f5ab4b35ef771410
2016-03-01 11:57:44 -08:00
Sunny Goyal ed2ce76bfe Merge "Preventing crash when there is not enough width to show the pending text" into ub-launcher3-burnaby-polish 2016-02-25 04:14:06 +00:00
Sunny Goyal 81131edc8e Merge "Revert "Disabling som attributes so that dependencies can use compat libraries"" into ub-launcher3-burnaby-polish 2016-02-25 00:04:26 +00:00
Hyunyoung Song 2cb92eb2bb Merge "Change preloading coefficient for widgets tray to improve jankness on low performance devices." into ub-launcher3-burnaby-polish 2016-02-24 02:28:59 +00:00
Hyunyoung Song b7271fd17e Change preloading coefficient for widgets tray to improve jankness
on low performance devices.

Change-Id: I6dfe1161bf596792a7fc8b3c5160a4922e177834
2016-02-23 18:23:54 -08:00
Sunny Goyal 5845bea514 Preventing crash when there is not enough width to show the pending text
Bug: 26901856
Change-Id: I03c9631ce224cce76b2c896a5e6ce6b0ee741782
2016-02-23 16:43:23 -08:00
Sunny Goyal 59871ef875 Revert "Disabling som attributes so that dependencies can use compat libraries"
This reverts commit e1bd986d77.

Change-Id: I27490d0cb241b2e58ce45998f7f9e9bc8d84993c
2016-02-24 00:28:02 +00:00
Hyunyoung Song d31dcbcc7c Manual revert due to conflict:
Revert "Load label in bg thread to prevent ANR b/27238970"

This reverts commit b62fd09576.

Change-Id: Ia751e3414fb24a18bb8bb9ca09dcd93d0e4249f6
2016-02-23 11:36:21 -08:00
Sunny Goyal e1bd986d77 Disabling som attributes so that dependencies can use compat libraries
Bug: 27101533
Change-Id: I18de77cffbbb234f25fb85dfe0334ed7fe113a74
2016-02-23 10:43:02 -08:00
Hyunyoung Song b62fd09576 Load label in bg thread to prevent ANR
b/27238970

Change-Id: Ic5d77df7d5276cee07861d59427a94fb19691d9c
(cherry picked from commit 72a9953cf4)
2016-02-23 00:45:56 +00:00
Sunny Goyal a6194d3d92 Wrapping thw widgetList inside a layout, so that it has the same view structure as allApps
Change-Id: I28b035beb1c7e13101ec20ff671d3cad5f757c0e
2016-02-19 09:35:43 -08:00
Sunny Goyal c42ac0a5a6 Removing LauncherCallbacks control over app search
Change-Id: Icb199607dea3f169055e44946272aa9f1e758d1d
2016-02-18 15:32:27 -08:00
Sunny Goyal 2953833bcb Adding a utility method to iterate over folder contents
Change-Id: I9f17ade7dc06819587290387b811d828da57b2fb
2016-02-18 09:10:19 -08:00
Sunny Goyal 94f46d9e5f Setting content bounds in onMeasure as it uses measuredWidth, which might
not be available during onCreate

Also fixing the calculation of allApps column could, which was counting an
additional icon gap

Bug: 27173894
Change-Id: I8be8cccc76d7e7d945cf9383567a3026228b6c86
2016-02-16 15:24:14 -08:00
Tony Wickham 187b8f547d Merge "Clears the widget resize frame when a directional key is pressed." into ub-launcher3-burnaby-polish 2016-02-12 22:07:27 +00:00
Tony Wickham 71255bb04f Clears the widget resize frame when a directional key is pressed.
Also gives focus to the corresponding widget host view in this case.

Bug: 27130066
Change-Id: I0a564aa7c509450cd1b9cf259c0a009c68ce3e3b
2016-02-12 14:06:32 -08:00
Sunny Goyal bb702584fa Fixing crash during rotation
> Different views with same IDs were saving state
> Fixing scroll getting reset on rotation

Change-Id: Iae42419b83ee5ffa1bb43959f0931c8dfb761f32
2016-02-11 11:06:43 -08:00
Tony Wickham 4df1653331 Merge "Change widget host view background when giving focus to child." into ub-launcher3-burnaby-polish 2016-02-10 23:35:11 +00:00
Tony Wickham fb78856466 Change widget host view background when giving focus to child.
Before, the FocusIndicatorView stayed on the widget host unless the
widget had its own focus change listener, which caused a couple of
problems, namely  (1) it was hard to know where the focus was from
a user's standpoint, and (2) the focus indicator could get stuck on
the screen if you entered a widget and then long-pressed workspace.
Now, the focus indicator goes away and instead the widget is framed
with a white border to indicate that the focus is inside it. The
frame goes away when pressing ESC or when touching the screen.

Bug: 26744224

Change-Id: I14025576fd7a9f901b4d969b878af0bebad79a70
2016-02-10 15:28:18 -08:00
Sunny Goyal 3826bab27e Merge "Merging search bar with all apps" into ub-launcher3-burnaby-polish 2016-02-10 19:18:13 +00:00
Hyunyoung Song f97083245c WidgetsModel clone method should be called in worker thread
b/24582368

Change-Id: I7b1d2ccfa7d7ac8235e4aeccc2b6b1a8eeea6461
(cherry picked from commit 747a5bc486)
2016-02-09 02:19:59 +00:00
Sunny Goyal 0ac7ede56a Merging search bar with all apps
Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
2016-02-08 14:55:22 -08:00
Hyunyoung Song a27d7a5a19 Add more debugging info when Launcher deletes widget from homescreen.
b/26219491

Change-Id: I5899cafa8d78e5e64a4ec1495ebf62ebc55ea8f5
(cherry picked from commit 70264a9717)
2016-02-04 01:23:25 +00:00
Sunny Goyal 0e04980310 Merge "Updating folder UI when icons are normalized > Increasing padding > Making the folder label bold and lighter color" into ub-launcher3-burnaby-polish 2016-02-03 19:32:02 +00:00
Sunny Goyal 2113c9d664 Merge "Fixing Search drop target bar stays visible, until the first time an item is picked up" into ub-launcher3-burnaby-polish 2016-02-01 23:08:25 +00:00
Tony Wickham b9759d399b Merge "Add extra space for the search bar." into ub-launcher3-burnaby-polish 2016-02-01 22:29:55 +00:00
Tony Wickham 8a75806c1a Add extra space for the search bar.
Also fixed a broken test.

Change-Id: I1c270e69617528ea30f0e26a2101673e9b9fa63c
2016-02-01 14:15:37 -08:00
Sunny Goyal 5c556e7226 Updating folder UI when icons are normalized
> Increasing padding
  > Making the folder label bold and lighter color

Change-Id: Ib86d711c27cd03f366cdd35222d1f63f4a542f06
2016-01-29 18:46:19 -08:00
Sunny Goyal 6731395671 Fixing Search drop target bar stays visible, until the first time
an item is picked up

Change-Id: I48ac697147ffe7a1f8802ed00de4fa4006a1878e
2016-01-29 18:39:26 -08:00
Sunny Goyal b171e5675b Adding a method to throttle backup manager calls
Notifying backup manager when a boolean preference changes

Bug: 22885775
Change-Id: I105013af1841f6cd87472f558fa490670ed1ba24
2016-01-29 14:12:21 -08:00
Sunny Goyal 6362683acb Merge "Removing unnecessary new object creation in dispatchDraw" into ub-launcher3-burnaby-polish 2016-01-28 00:30:06 +00:00
Sunny Goyal 3fc648d3b7 Preventing a Runtime widget crash from crashing the Launcher
Bug: 26750103
Change-Id: I31f120bb0c4d64b903b3dd5dae0ae46f95bcdf59
2016-01-25 17:30:25 -08:00
Sunny Goyal 8bf6f311e8 Removing unnecessary new object creation in dispatchDraw
dispatchDraw was calling getVisiblePages which in turn calls
getDescendantCoordRelativeToParent and created multiple new abjects

Change-Id: I401fec076183979d30dfdbbdc02a57bd79f3886d
2016-01-23 14:42:25 -08:00
Sunny Goyal b56090af35 Merge "Removing some obsolete files" into ub-launcher3-burnaby-polish 2016-01-19 20:54:00 +00:00
Sunny Goyal 2080603ca7 Removing some obsolete files
Change-Id: I45cc23afcecb67163da99a9b81ace0021f723c9b
2016-01-19 10:38:49 -08:00
Sunny Goyal c7a49f0574 Removign 'final' modifiers from FeatureFlags so that then can be overridden
Change-Id: I07265eaeed883301787eb0ffd838f516d7c63d26
2016-01-19 10:36:23 -08:00
Sunny Goyal d42903b4f0 Merge "Disabling icon normalization" into ub-launcher3-burnaby-polish 2016-01-13 18:04:19 +00:00
Sunny Goyal dde32e216c Disabling icon normalization
Bug: 26537769
Change-Id: Ia1d7127a7c01fe98127e34440d1c003b669eaf75
2016-01-13 09:48:17 -08:00
Sunny Goyal 5255c87c6f Merge "Fixing icon badging being done on scaled bitmap size" into ub-launcher3-burnaby-polish 2016-01-12 22:35:16 +00:00
Sunny Goyal ecdc24f6f6 Fixing custom content screen not aligned properly in landscape
Bug: 26413100
Change-Id: I1a111c9d2b0dfdfbc3cbd566e5784a1ed2bb6719
2016-01-12 10:35:55 -08:00
Sunny Goyal e1483fb1cd Fixing icon badging being done on scaled bitmap size
Launcher already scales the bitmap during the icon creaiton. The
badging should be done based on the actual size

Bug: 26345646
Change-Id: I1b1f7ac736322ba10db9083d602eec221b99687a
2016-01-08 12:16:15 -08:00
Sunny Goyal e70fb6f8ef Accessibility delegate is already set in BubbleTextView constructor. Not need to set it again
Bug: 25948877
Change-Id: I1d301a6169404a78881fa29da6d6bdf2fec8f146
2016-01-07 13:51:09 -08:00
Sunny Goyal f82e547359 Fixing syntax error
Change-Id: I8fbcd34d891b1d020436e9aa430fd26372910a63
2016-01-06 15:09:22 -08:00
Sunny Goyal f7a263c437 Merge "Adding support for negative x and y in layout xml. Fixing default configurations for some screen sizes." into ub-launcher3-burnaby-polish 2016-01-06 22:51:43 +00:00
Sunny Goyal a6164c5c9b Adding a .nano prefix in the proto package name
Change-Id: Ia513089f813567953ca146538f79d21ca5fd8ddf
2016-01-06 14:47:13 -08:00
Sunny Goyal 96a0963c4a Adding support for negative x and y in layout xml.
Fixing default configurations for some screen sizes.

> Negative values for x and y are parsed as distance from end
column and row respectively. e.g.  (-1, -2) => (3, 2) in a
4x4 grid

Bug: 26110981
Change-Id: I4ca30e225ed6e2a31610ab23235d2cd10e8d317c
2015-12-18 17:17:08 -08:00
Sunny Goyal ffa1237698 Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread" into ub-launcher3-burnaby-polish 2015-12-18 22:38:52 +00:00
Sunny Goyal 60acb943c6 Merge "Preventing launcher crashes due to low disk space." into ub-launcher3-burnaby-polish 2015-12-18 22:29:47 +00:00
Tony Wickham ca656e3c69 Fix item count check in Folder#replaceFolderWithFinalItem()
Instead of checking the item count (number of views), check the number
of items in the model, since that is where the item is being removed.
This way, mInfo.contents.remove(0) will never be out of bounds.

Bug: 25666490
Change-Id: I0eb880b366157bddb5a8c342d538737722b7f0cd
2015-12-18 13:13:48 -08:00