Commit Graph

4257 Commits

Author SHA1 Message Date
Jun Mukai
bbcf5ac7aa Merge "Introduce LauncherSearchCallback to handle search overlay status." into ub-launcher3-burnaby 2015-05-27 00:41:29 +00:00
Sunny Goyal
d70ad0d095 Fixing workspace scrim not being drawn
Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71
2015-05-26 17:20:07 -07:00
Hyunyoung Song
8f10dc21a0 Merge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub-launcher3-burnaby 2015-05-22 21:51:57 +00:00
Hyunyoung Song
9110d485fa Fix widget tray crash on screen rotation introduced by
ag/694693

b/21402209

Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d
2015-05-22 14:49:23 -07:00
Winson Chung
5f4e0fdd2e Moving all apps code into sub package.
- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
2015-05-22 12:21:40 -07:00
Sunny Goyal
c6205603ef Creating landscape and portrait device profiles at app initialization
Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
2015-05-22 08:46:41 -07:00
Sunny Goyal
2805e639cd Animating workspace active background change
> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
2015-05-21 16:26:15 -07:00
Adam Cohen
2e6da1539b Refactoring DeviceProfile
-> Pulling out the parts of device profile which can (and need to be)
   initialized and accessed without access to an Activity context,
   ie. the invariant bits.
-> The invariant bits are stored in InvariantDeviceProfile which is
   initialized statically from LauncherAppState.
-> The DeviceProfile contains the Activity context-dependent bits,
   and we will create one of these for each Activity instance, and
   this instance is accessed through the Launcher activity.
-> It's possible that we can continue to refactor this such that
   all appropriate dimensions can be computed without an Activity
   context (by only specifying orientation). This would be an
   extension of this CL and allow us to know exactly how launcher
   will look in both orientations from any context.

Sets the stage for some improvements around b/19514688

Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
2015-05-21 16:16:40 -07:00
Winson Chung
370afe8a04 Merge "Tweaking method name." into ub-launcher3-burnaby 2015-05-21 22:46:07 +00:00
Winson Chung
7eb9925491 Tweaking method name.
Change-Id: I2f4f9dc58c8148059914a106526995e80a82376f
2015-05-21 15:45:24 -07:00
Winson Chung
4fabf1dd41 Merge "Fixing crash in previous CL." into ub-launcher3-burnaby 2015-05-21 22:43:45 +00:00
Sunny Goyal
c57bb9b113 Merge "Icons are not updated to TYPE_APPLICATION during restore" into ub-launcher3-burnaby 2015-05-21 22:26:27 +00:00
Winson Chung
db0b572862 Fixing crash in previous CL.
- Shouldn't be referencing mApps before it is set.
2015-05-21 14:39:54 -07:00
Sunny Goyal
aa78b3dea3 Merge "Preventing overdraw. Drawing background directly at the window, instead of the rootview." into ub-launcher3-burnaby 2015-05-21 20:34:28 +00:00
Sunny Goyal
5c97f51fd9 Icons are not updated to TYPE_APPLICATION during restore
> Use low res only for app shortcuts
> Running icon migration after restore
> Running icon migration again for all users
> Deduping shortcuts added from widget tray

Bug: 20945600
Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
2015-05-21 13:34:07 -07:00
Winson Chung
3abcd5ba1b Cleaning up some app model code.
- Preventing extra sorting when adding/updating apps
- Preventing extra logic when filtering apps
- Fixing overlapping prediction bar when all predictions are removed
- Fixing crash when retrieving section names for AppInfos whose titles
  have been updated, but updateApps has not yet been called.

Change-Id: I1da468b0fd5c5cc404b6a5e6146a268fefeca267
2015-05-21 20:33:01 +00:00
Sunny Goyal
324d78358c Merge "Breaking icon update task so that it doesn't block worker thread" into ub-launcher3-burnaby 2015-05-21 20:31:37 +00:00
Hyunyoung Song
edc9c05644 Merge "Load PackageItemInfo in background thread to prevent ANR" into ub-launcher3-burnaby 2015-05-21 20:25:16 +00:00
Sunny Goyal
6d65ab9e55 Merge "Using color filter when animating the drop target instead to TransitionDrawable" into ub-launcher3-burnaby 2015-05-21 20:23:58 +00:00
Hyunyoung Song
2bd3d7d1cb Load PackageItemInfo in background thread to prevent ANR
- Decoupled widget model from widget view, and placed the
creation to LauncherModel.
- As a result packagemanager operation, iconcache retrieval is all done inside
LauncherModel on background thread
b/21311085
b/21325319

Change-Id: I294698527db58b89f3da558090a367530c058776
2015-05-21 13:04:53 -07:00
Sunny Goyal
4a6c6f3105 Preventing overdraw. Drawing background directly at the window, instead of
the rootview.

Change-Id: Ie974752e739d9acd1fbd765809c671f82f462644
2015-05-21 12:29:14 -07:00
Sunny Goyal
3a644ed1ce Using color filter when animating the drop target instead to TransitionDrawable
> No more flickering when crossfading between two bitmaps in small duration
> Allows us to control the color directly without depending on the assets

Change-Id: Ie7ed8bb94baf560e9b939cca624ed1bad457732c
2015-05-21 10:30:46 -07:00
Sunny Goyal
a508e4f804 Do not trim folder title
Bug: 21297281
Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86
2015-05-21 09:33:57 -07:00
Sunny Goyal
75b0f552ae Breaking icon update task so that it doesn't block worker thread
Bug: 20945600
Change-Id: Iaf516577898b51ad6e8a813d7f018ecad969c100
2015-05-21 09:18:27 -07:00
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