Commit Graph

4232 Commits

Author SHA1 Message Date
Winson Chung c393b0765d Fixing issue where the prediction bar apps are not focused.
- Also fixes issue where all apps is not accessible by keyboard
  when there are no other apps in the hotseat.

Bug: 21334471
2015-05-21 00:37:50 +00:00
Sunny Goyal db092a331c Merge "Setting drawable to droptarget in the code to avoid multiple drawable inflation" into ub-launcher3-burnaby 2015-05-20 23:51:35 +00:00
Sunny Goyal e0cab303b8 Setting drawable to droptarget in the code to avoid multiple drawable inflation
Change-Id: Ib713b3051e2707d46a4ee0090aed2db1d2e641b9
2015-05-20 16:41:08 -07:00
Winson Chung 3e4d5f20ba Merge "Reducing delay in applying widget previews loaded in the background." into ub-launcher3-burnaby 2015-05-20 23:08:19 +00:00
Sunny Goyal 20812e9640 Merge "Removing some unused functionalities" into ub-launcher3-burnaby 2015-05-20 22:35:49 +00:00
Sunny Goyal 2280e27842 Merge "Avoiding blocking worker thread when adding icons to DB" into ub-launcher3-burnaby 2015-05-20 22:34:42 +00:00
Sunny Goyal 99d950fb4d Removing unnecessary linear layout
Change-Id: I7fe423b9526805a2e84887e0437ebdc96203c263
2015-05-20 14:43:18 -07:00
Sunny Goyal a1fbd84b79 Fixing unnecessary padding added to pages in overview mode
Change-Id: Icd17c2956b201ea0b6c6a2a495f567f51987b1ac
2015-05-20 13:40:57 -07:00
Winson Chung f72eb710af Removing override annotation to fix build.
Change-Id: I5a4dfa339db7862ac3db4cc379469ac8d9f6fae5
2015-05-20 18:15:04 +00:00
Vadim Tryshev bc51766dea Merge "Removing itemCount, fromIndex and toIndex from AccessibilityEvent.TYPE_VIEW_SCROLLED sent by PagedView. This causes an additional reduntant voice message on scroll (see the bug)." into ub-launcher3-burnaby 2015-05-20 18:10:54 +00:00
Hyunyoung Song ab37562ba0 Merge "List work profile widgets to the end of the row of the widget tray, then sort" into ub-launcher3-burnaby 2015-05-20 18:08:42 +00:00
Hyunyoung Song 0230c3a87f List work profile widgets to the end of the row of the widget tray, then sort
b/20339403

Change-Id: I7cd824e47eba1121c9053a4064a51750bed587e7
2015-05-20 11:03:46 -07:00
Winson Chung 05304db905 Reducing delay in applying widget previews loaded in the background.
- Push the writing of previews to the DB to the worker thread
  to ensure that we can apply the loaded preview as soon as
  possible.
- Reducing additional bitmap allocations from cancelled tasks
  that did not re-add their bitmaps to the unused set
  (happens when the list is scrolling quickly).

Change-Id: Ib7c2cfdfcc668c215b3a74271e1165235fbdf752
2015-05-20 10:56:54 -07:00
Sunny Goyal f3a21c8ca2 Merge "Moving LauncherAccessibilityDelegate to accessibility package" into ub-launcher3-burnaby 2015-05-20 04:15:34 +00:00
Sunny Goyal 59fcc1ad4e Merge "Updating widget resize frame assets." into ub-launcher3-burnaby 2015-05-20 04:15:14 +00:00
Sunny Goyal a938867bc8 Merge "Adding null check to outline generator" into ub-launcher3-burnaby 2015-05-20 04:15:04 +00:00
Sunny Goyal 0573977143 Removing some unused functionalities
> Removing obsolete progrard rules
> Removing BackgroundAlphaMultiplier from CellLayout, which is always 1
> Removign otiline animation from workspace. This animation never runs,
as it is called during startReordeing which always happens when
overview mode (workspaceInModalState() is true)

Change-Id: I43219e41ea188771bc818988c1bcbd523f28cba6
2015-05-19 20:03:06 -07:00
Sunny Goyal b135956e95 Avoiding object allocation during draw
Change-Id: I94c146e0f4ad7386a31782f0e63e5228a2fa0442
2015-05-19 19:07:45 -07:00
Sunny Goyal 5537faaf9f Adding null check to outline generator
Change-Id: I8eb8b62a868d80fd0a7c9deec8915828bd8177d0
2015-05-19 17:35:07 -07:00
Sunny Goyal ba776d57f4 Updating widget resize frame assets.
> Using a shadow as background and a frame as foreground.
> The handle has baked in shadow which gets wrapped by the
frame shadow

Change-Id: Ib0e305ea735304236b3319e4fde22fb442f5dc0f
2015-05-19 17:17:15 -07:00
Vadim Tryshev cd4f4138f0 Removing itemCount, fromIndex and toIndex from
AccessibilityEvent.TYPE_VIEW_SCROLLED sent by PagedView.
This causes an additional reduntant voice message on scroll (see the
bug).

Also, setting these attributes violate rules set here:
http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html
i.e. that these fields should be set only for descendants of
AdapterView.

Note that we can't just stop sending TYPE_VIEW_SCROLLED, because in this
case, accessibility focus won't be set after scrolling.

Bug: 21304383
Change-Id: I84f8e064d8209c0e09d6827551e00c9913829b57
2015-05-19 21:34:55 +00:00
Sunny Goyal bc0998670b Merge "Adding drop shadow effect in allapps" into ub-launcher3-burnaby 2015-05-19 21:07:40 +00:00
Hyunyoung Song 0b493c86c5 Unify sorting between all apps and widget tray
- selected locale names are shown before latin
- case independent sorting
- main app > enterprise app

Future possible refactoring:
- Move all the *ItemInfo data structures to model package
- Rename the comparator based on NOT what data structure it supports
but what functionality it supports (locale? case independent?
main app > enterprise app?)

b/21271658
b/20339403

Change-Id: I8a776467392e21d5014e85cd3f51931a3ef89724
2015-05-19 13:39:44 -07:00
Sunny Goyal 83a8f042ad Moving LauncherAccessibilityDelegate to accessibility package
Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
2015-05-19 12:52:30 -07:00
Sunny Goyal 6cfad01b1c Merge "Widget cell improvement" into ub-launcher3-burnaby 2015-05-19 19:21:22 +00:00
Sunny Goyal 9ff980833d Avoiding blocking worker thread when adding icons to DB
Bug: 20945600
Change-Id: If12b21ac62c55c769838ce17d5421f147c396256
2015-05-19 12:19:38 -07:00
Sunny Goyal f52abd7758 Widget cell improvement
> Using a custom view for preview, instead of extensing image view
> Preventing relayout when applying preview
> Removing unnecessary method calls

Bug: 21133230
Change-Id: Iab12fa1e5c871ee43a9fb0e6b6af897fecfb345f
2015-05-19 11:51:23 -07:00
Winson Chung da25da3d55 Ensure that we have a reasonable cache size for AllApps.
Change-Id: Ic0cb5ec2911567102227748cd9d2c1d8297fe105
2015-05-19 18:04:09 +00:00
Winson Chung 32f14071cc Synchronizing views dependent on scroll during pre-draw.
Instead of tracking the absolute scroll, which can be inconsistent,
simply synchronize any views that depend on the RecyclerView scroll
each time in onPreDraw.

Bug: 21169021
2015-05-19 18:03:50 +00:00
Winson Chung 66a90e701f Fixing issue with prediction bar apps erroneously being tapped.
- requestDisallowIntercept is not called unless the recycler view
  scrolls so when over scrolling, we still need to check the distance
  to ensure we stop long pressing when the touch moves outside the
  slop
- Ensure that we don't allow tapping the prediction bar icons under
  the search bar

Change-Id: I520c05fa77911340d4747bb469918812b192769e
2015-05-19 18:03:30 +00:00
Sunny Goyal 2bba4c37c6 Removing some thread priority management logic
> Not saving folder id in onSaveInstance as it is not used.

Change-Id: I176beb77cafe27ec4b7500d65dc86287d2f2e0cb
2015-05-18 15:57:14 -07:00
Sunny Goyal f5cd998c25 Starting the loader if the previous loader is not complete, instead of binding page synchronously
Bug: 21107637
Change-Id: If04952c7d5c8a38a739ce5536ecac394011ab61a
2015-05-18 15:22:47 -07:00
Sunny Goyal 69b756486c Preventing relayout when loading high-res icons
Bug: 21133230
Change-Id: I1ec4dbfd28c42fa1c0e28b3fa746c0bc5dfaba7c
2015-05-15 17:05:38 -07:00
Winson Chung 2d58471e8d Reducing calls to onCreateViewHolder due to animating children.
Bug 21133230

Change-Id: Ib5be0766d1ea56976195e33526d7595a16672eef
2015-05-15 23:49:24 +00:00
Hyunyoung Song 2a1580ca7d Merge "Transition from back to showing widget tray if shortcut/Widget configure activity was cancelled." into ub-launcher3-burnaby 2015-05-15 23:36:46 +00:00
Hyunyoung Song b790083b8f Transition from back to showing widget tray if shortcut/Widget configure activity
was cancelled.

Recent refactoring of the State inside Launcher introduced a check
of which state can show widget tray (only workspace) that was too agressive.

b/21201908

Change-Id: Iaccb44d23485aa101d7720b29335645a74f4dcdc
2015-05-15 16:29:45 -07:00
Sunny Goyal 4b6eb26950 Adding drop shadow effect in allapps
Change-Id: Ic7a9b6e23d925d27a8dcbd418d2609e43917ac45
2015-05-15 15:47:10 -07:00
Sunny Goyal 312011094f Merge "Optimizing shadow generation by reusing bitmap." into ub-launcher3-burnaby 2015-05-15 22:37:58 +00:00
Winson Chung 78b19667da Removing some dead code and extra view creation.
b/21133230
2015-05-15 21:31:13 +00:00
Sunny Goyal 4fe5a37dda Optimizing shadow generation by reusing bitmap.
> Not creating unnecessary bitmaps
> Final bitmap is generated as ALPHA_8 instead of ARGB_8888
> The shadow drawing is done directly in the view

Change-Id: I504fa2ea3abdc1a3c3fb9ad57d6e28880d2584a1
2015-05-15 14:10:20 -07:00
Winson Chung afa77e947d Don't try and trim null strings.
Bug: 21161481
2015-05-15 19:07:51 +00:00
Sunny Goyal a214a63bfe Preventing homscreen getting filled with secondary user apps, when launcher
starts for the first time

> Sorting the apps in the work folder by install time

Change-Id: Ia475b4ff3197d90e6dffe070c12c0aa16be9e292
2015-05-15 11:53:10 -07:00
Sunny Goyal 9353903d44 Merge "Fixing issue with folder inflation" into ub-launcher3-burnaby 2015-05-15 18:51:36 +00:00
Sunny Goyal c23da84a87 Fixing issue with folder inflation
> Folder was getting placed at the top left, instead of a custom position

Change-Id: Ief279fad1583085c61aaa403e9cbe687da895ae0
2015-05-15 11:51:18 -07:00
Winson Chung b4de914014 Merge "Ensure prediction bar is visible when intercepting touch events. " into ub-launcher3-burnaby 2015-05-15 17:01:22 +00:00
Winson Chung 2f08aa3ee0 Merge "Fixing crash when drawing prediction bar divider." into ub-launcher3-burnaby 2015-05-15 13:07:37 +00:00
Winson Chung 6339911bd4 Ensure prediction bar is visible when intercepting touch events.
Bug 21180943
2015-05-15 06:02:44 -07:00
Sunny Goyal a8a4546805 Merge "Adding padding to the folder content" into ub-launcher3-burnaby 2015-05-15 02:22:00 +00:00
Hyunyoung Song e3a1df20e6 Merge "Place the work profile badge in the correct bottom right (left for RTL) location" into ub-launcher3-burnaby 2015-05-15 00:09:49 +00:00
Hyunyoung Song 6babf2e27e Place the work profile badge in the correct bottom right (left for RTL)
location

Also:
- clean up of some code
- remove requestLayout() method call that is not needed.

b/20338602

Change-Id: I65e0e1ac40da2e3fa85af4d3aca54bed3f200a99
2015-05-14 17:08:45 -07:00