Commit Graph

24 Commits

Author SHA1 Message Date
Alex Chau
3d2c062567 Change wallpaper depth in widget picker
- Also changed widget picker open/close duration, refactored the values into DeviceProfile
- Generalized MultiAdditivePropertyFactory to accept aggregator as parameter

Bug: 240580498
Test: manual
Change-Id: I6886ca514593e404b8d7b0e8ed44f20ec2b77c73
2022-09-13 12:20:56 +08:00
Andras Kloczl
c2bd15fd2a Fix slow page animations on large devices
- Change non-fling page snap animation duration
- Change fling gesture related minVelocity

Test: Scroll between home pages, allapps, folder pages
Bug: 229073876
Change-Id: Ib39187ec9c832e65dd0b71f8f4a00e1b636423a4
Merge "Hide web settings, if web suggestions is disabled" into tm-dev

Change-Id: Ib39187ec9c832e65dd0b71f8f4a00e1b636423a4
2022-05-12 12:56:41 +01:00
Alex Chau
a02eddc144 Handle config changes in Launcher
- This is practically a revert to http://ag/c/13687966/5 and refactored to use DisplayController.DisplayInfoChangeListener
- Make Launcher handle size and density change so transition is less janky when screen size changes
- Added fix in RecentsView to update state and TaskView when display profile changes
- Removed 720dp specific resoureces
- Removed unused widget_section_indent
- Removed unnecessary all_apps_background_canvas 600dp override that is not needed in AllApps+
- Moved remaining dp specific into DeviceProfile
- Simplified allowRotation logic to use single variable in DeviceProfile to determine if allow rotation is enabled by default

Fixes: 180803696
Test: manual
Change-Id: Iea0a7d1a0e14dc3613152dd3b3887450a2e1fc2f
2021-05-10 18:50:02 +01:00
Sunny Goyal
19ff728b92 Adding support for determining split layout for launcher.
> Simulating the windo wmanager API to get available device
  profiles until final API
> When a device has multiple internal displays, and with both
  tablet and phone possibilities, it uses a split workspace layout

Bug: 186160341
Bug: 175782275
Test: Manual
Change-Id: Ieff2329acac7cdd6b9abe6f96cd459cd45bd0efe
2021-05-03 14:48:28 -07:00
Alex Chau
41a842449d Don't transpose hotseat on sw600
Bug: 178385459
Test: Manual
Change-Id: I5805b0ccb05b97b931ab99a31c31029f7066daca
2021-03-29 13:01:28 +01:00
Sunny Goyal
1890f67800 Overriding density when initializing device-profile as the app-context may not
point to the correct density in multi-display

Bug: 154665987
Bug: 153293358
Change-Id: I9a95bf314049ce783067f70c735ea29a64388ce5
2020-04-30 12:29:02 -07:00
Sunny Goyal
756cd26592 General code refactoring
> Removing utility method for isAttachedToWindow
  > Moving logic to calculate cell size from workspace to DeviceProfile
  > Replacing some constants with xml resource variables
  > Saving the item info using content values for better compatibility with other methods

Change-Id: Idd612633d97a6241cb31148df9466031374bd5a0
2015-08-20 12:56:58 -07:00
Sunny Goyal
71b5c0b988 Adding accessibility controls
> Adding 'Remove' option to workspace items
> Adding 'Add to workspace' to all apps and widget list items, which
adds the item to the first available space, giving preference to
the current workspace screen
> Adding 'App info' and 'Uninstall' options to appropriate items

Bug: 18482913
Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
2015-01-16 17:40:41 -08:00
Sunny Goyal
fbfa2cc609 Removing unused cling resources.
Change-Id: I97ff14f436f75a6345f719ef19146b02087e2221
2014-08-27 18:10:23 -07:00
Winson Chung
5f8afe6280 Initial Changes for Dynamic Grid
Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
2013-08-20 10:56:05 -07:00
Adam Cohen
f0f4eda318 Making folders scrollable
Change-Id: Id6c9ec62acc6d86dc627d20abad3e2d92010f539
2013-06-06 21:28:57 -07:00
Michael Jurka
a113121fd3 Stop using mcc for custom workspace cling on sw600dp devices
Bug: 7203884
2012-10-09 14:46:26 +02:00
Winson Chung
5a0f45fe27 Fixing some spacing issues related to new 10inch layout. (Bug 6955380, Bug 7035262, Bug 7056508)
Change-Id: I589fe6c2475cfff12599eee9b490b2d4dc86511a
2012-08-28 17:08:56 -07:00
Adam Cohen
1dc3b9abd5 Merge "Adding the ability to scale the hotseat or items in the hotseat" into jb-mr1-dev 2012-08-24 13:05:26 -07:00
Adam Cohen
307fe23f12 Adding the ability to scale the hotseat or items in the hotseat
--> A bunch of stuff breaks when scaling the hotseat. More specifically,
    drag and drop animations between hotseat and workspace,
    scaling on pick up, folder animations, determination of
    item placement. This CL fixes these issues so that the
    hotseat or hotseat items are ready to be scaled.
--> For now, using 90% scale factor for 7-inch+ UIs

Change-Id: Iac098409347e76139e4d726a071397b56ac684d2
2012-08-20 21:49:43 -07:00
Adam Cohen
985b9b6406 Cleaning up folders for 7-inch and 10-inch UIs
Change-Id: I44c068ea288e4683aa7dc9e86bdac6226bb42b75
2012-08-15 15:37:27 -07:00
Winson Chung
4a2afa3655 Disabling synchronous binding when returning home from another app while orientation has changed. (Bug 6792288)
- Fixing issue where we were reverting to the first page of the workspace after launching an application from all apps, rotating, and returning home
- Enabling rotation in master.

Change-Id: I291b9d76b20244e9028b6f62164430bc3606644c
2012-07-19 15:13:51 -07:00
Adam Cohen
94309887fe Improving overscroll paramaters for 7-inch devices
Change-Id: Iba805137fca121bab7675eac22236af9642c27bb
2012-06-08 16:27:57 -07:00
Winson Chung
6e1bdaf419 Lowering the threshold for flinging on larger devices. (Bug 6575670)
Change-Id: I969057d6135babef430c60f5b2705179210719bb
2012-05-29 17:04:43 -07:00
Michael Jurka
7d816a7d2f Disable rotation on sw600dp devices
Keep it enabled for sw720dp devices
2012-05-15 17:06:09 -07:00
Adam Cohen
cb3f98e983 Enable rotation for sw600dp devices
Change-Id: Id01c84eba30a80cb21b1527cdc137aba9cda09f2
2012-04-24 14:29:10 -07:00
Andrew Flynn
0dca1ec414 New small/large screen division for Launcher.
Previously the dp division between the two was set at 600dp
(7" tablets). This has now been bumped up to 720dp
(10" tablets).

Change-Id: I1f0419e504fc3bb606156c1cf6fbe03956274184
2012-02-29 17:30:37 -08:00
Adam Cohen
78dc83e875 Modifying portals in landscape on the phone UI
Change-Id: I4190b0e4958dfd0d59d943d9b4c4d6fd2e9303c0
2011-11-15 17:10:20 -08:00
Winson Chung
c4540bd7ba Fixing incorrect resource overlay naming.
Change-Id: Iebb48a96835360d2a312aa8df8ac940d9a7e9be6
2011-08-31 16:07:43 -07:00