summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* 1. Move RemoteFolderManager and RemoteFolderUpdater into launcher3 packageArtem Shvadskiy2015-12-151-6/+0
| | | | | | | | | | | and move RemoteFolderManager implementation to overlay. 2. Modify settings to hide remote folder preference on CM builds. 3. Remove remote folder from default workspace. Change-Id: I6cc3409cf0a9ada68779c41e62f46bc08f2f9ad4 issue-id: CYNGNOS-1429
* Add remote folder if it is not already present after OOBE, and enable toggleArtem Shvadskiy2015-12-091-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in settings to hide remote folder if unwanted. Refactor RemoteFolderUpdater to hold static instance of itself. Refactor FolderInfo to use method for determining remote folder status, instead of manually comparing subType flag. Switch back from temp-coordinates after workspace drag/drop is completed. Remove disable button from remote folder UI. Patch 2: Pull remote folder code out of Launcher and into RemoteFolderManager. Patch 3: Remote @author from RemoteFolderManager Patch 4: 1. Remove delete button from folder. 2. Fix NPE when screens are full. Create a new screen and ad at (0,0). 3. Set default preference to false. 4. Clean up leftover imports and unnecessary conditionals. 5. Refactor Launcher.addFolder() method signature. Patch 5: Add missing parenthesis. Change-Id: I36b7a53175a568c5ebdc908d0256d9128e1bee65 issue-id: CYNGNOS-1378 issue-id: CYNGNOS-1331
* Trebuchet: dynamic folder type addedTyson Miller2015-12-011-0/+2
| | | | | | Issue-Id: CYNGNOS-1328 Change-Id: I09bf7bec119307f54836fedee8a1532627035d9a
* trebuchet: ensure not overlaping shorcuts and drop items when searchbar is ↵Jorge Ruesga2015-10-241-0/+1
| | | | | | | | | | | | | | | | invisible If searchbar is hidden (via settings) in portrait mode in no tablets devices, the first row of shortcuts overlaps the drop target view, which made impossible to positioning the drag shorcut in the same cell because is ocuppied by the remove drop target. This change, in the conditions described previously, animates the workspace to ensure the drop search bar has enough space without overlapping the workspace layout. Also give an extra padding (edgeMarginPx) to the workspace when searchbar is present. Actually, the search bar and the first row of shortcut icons are too much closed. Change-Id: I9bc5e42852b83a5445beb01bd3bdece9f82074b5 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Prevent multiple workspace state animators from being startedAdam Cohen2015-09-271-0/+14
| | | | | | | | | | | | -> Probably an issue with the way we're wrapping ViewPropertyAnimator which can lead to us acting like it's valid to have multiple instances of a VPA. In reality I think this is very problematic. -> For now, we can just make sure the previous animation is canceled if it hasn't yet completed. Bug 18428886 Change-Id: I097eec08ec68ed098e68866fb5eda72734c51b00
* Adding a few null checks.Sunny Goyal2015-09-271-1/+1
| | | | | | | | | | 1) During migration, if launcher2 has deleted user data, migration oes not happen 2) If Launcher3 does not has bind widget permission, QSB would be null. Bug: 18388507 Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
* Using the default search widget in Launcher3Sunny Goyal2015-09-271-13/+0
| | | | | | | | | | > Removing all logic related to search and voice overlays from Launcher3 > Using the widget provided by global search provider on the homescreen > Removing VoiceButtonProxy, as it is not being used anymore Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
* Fix edge case where LauncherOverlay scroll woudln't be resetAdam Cohen2015-09-271-2/+11
| | | | | | | | -> If the Workspace has a single page and the user goes from overscrolling in one direction, and then the other, the LauncherOverlay scroll wouldn't be set to 0 until the scrolling settled Change-Id: I29ee9abdfa023ae3599d1590cdaebf457e2220fa
* First pass of the Launcher Overlay interface / implAdam Cohen2015-09-271-24/+73
| | | | | | | -> Added simple reference launcher extension -> Make launcher able to handle a null qsb Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
* Updating ItemInfo objects in the worker threadSunny Goyal2015-09-271-171/+22
| | | | | | | | | | | > Launcher was making non-trivial updates to ItemInfo objects on UI thread. These updates were getting skipped when the Activity gets destroyed (possibly due to onConfigurationChange) > Unregistering SessionCallback on application onTerminate, rather than activity onDestroy Bug: 17941096 Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
* Keeping icons in disabled state when SD-card is unmountedSunny Goyal2015-09-271-2/+35
| | | | | | | | | | > changing shortcutInfo.isDisabled to be a flag based variable > on received OnPackageUnavailable, icons are disabled from desktop instead of being removed. Icons in all apps are removed Bug: 15852084 Bug: 16238283 Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
* Revert "Show apps as unavailable when on unmounted storage"Danesh M2015-09-271-84/+0
| | | | This reverts commit 53b6e9dd1a97ea59a84e4c8b7172e1773d990ee5.
* Updating icons for sortcuts when the target app updates.Sunny Goyal2015-09-271-0/+22
| | | | | Bug: 17398260 Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
* Use LauncherCallbacks model instead of method overridesAdam Cohen2015-09-271-1/+0
| | | | | | | | | -> When extending the Launcher Activity, instead of overriding public and protected methods, create a proper interface -> This helps define the interface when extending Launcher more formally and more clearly Change-Id: Ib38e8a376b2242d4078bf6856bb145f5b5f0da80
* Do not collapse Settings panel when reseting overview modeRaj Yengisetty2015-07-301-1/+1
| | | | | | QRDL-963 Change-Id: I2e79545c17ad6813f5ca62d50a0c7bb1d42f08ec
* Show apps as unavailable when on unmounted storaged34d2015-07-221-0/+84
| | | | | | | | | This patch allows shortcuts to apps that are currently unavailable due to being on unmounted external storage to remain on the workspace and in folders. The icons will be disabled and grayed out until the external storage is mounted. Change-Id: I971483806b27e3a75ef0d5bb89d8dfb86f97511e
* Hide workspace shortcuts during binding when AllApps is shown.Matt Garnes2015-06-291-0/+4
| | | | | | | | | | | Previously, if All Apps was opened before the workspace items were bound, the shortcuts would be come visible behind the app drawer when the loading finished. Set the alpha of the shortcuts to 0f to hide them if isAllAppsVisible() returns true. Change-Id: I399bf27435dfe179f64646456496b31eade864a3
* Scrolling: Fix fade in workspaces from ignoring usStephen Bird2015-06-151-2/+0
| | | | | | | | | | | | | | The fade in option ignores all user settings if the device is in landscape or is a tablet. Clean up the settings loading logic and ensure that the user settings are respected always. Repro Steps: - Force Rotation - kill trebuchet - scroll to new screen Change-Id: I9bc49d1abebd88ac8c95ef44ea4e874494e29e1e
* Move icons to fit within Dynamic grid upon resize.Stephen Bird2015-06-041-0/+7
| | | | | | | | | | | | If the dynamic grid is made smaller, currently icons will simply be hidden from view. Instead, create extra screens and squeeze the icons in so that they will all be visible upon resize. In some cases, icons can end up creating screens when it's not necessary we should revisit this at a later time and look into making these icons show up in a more expected place. Change-Id: I9a46f1ac45c1a04e252ed8943afcfe952df1392d
* Fix power save mode broken ui/animationsLinus Lee2015-06-011-9/+35
| | | | Change-Id: I7dc0123300ff2e9aa64713c1091d13ecc93001f3
* Trebuchet : Activate the default homepage selection button on first runUmair Khan2015-05-241-1/+1
| | | | | | | | As of now, when the Trebuchet is started for the first time, the set default homepage button is not activated on any of the screens. Activating it for the first time on default home screen makes more sense. Change-Id: Ia1b7272e177707616902d20ce90ff6ba293576b4 Signed-off-by: Umair Khan <omerjerk@gmail.com>
* Do not reload settings for changing state to All Apps.Matt Garnes2015-05-131-3/+5
| | | | | | | When getStateChangeAnimation() is called, only reload settings if leaving overview mode. Change-Id: I9ee7330779b19bb73c1a30497065854ce9fc1162
* Trebuchet: new folder UI v1Raj Yengisetty2015-05-121-2/+4
| | | | | | | | | This change adds a number of new UI components and animations for folders. Designer: Hayden Schoen Change-Id: I255cd4664432d84aebecf7e16ace5d9948573e27
* Trebuchet: always set initial wallpaper offsetsRoman Birg2015-04-271-1/+3
| | | | | | | | | After a fresh boot, computeScrollOffset() always returns false. So the result was the offsets were never properly being set on a fresh boot and they were only being applied on first drag of the home screen, which finally triggered computeScrollOffset() to return true. Change-Id: Iccaedd742bed861fca1f50dd54e2e4537fd4c9b0
* Trebuchet: App Drawer - clean up open/close animationsRaj Yengisetty2015-03-061-1/+1
| | | | Change-Id: Ia1bcaec9cf5bdcd9ca61137aa45f91819fb2e94d
* Fix bug with toggling SearchBar off:Raj Yengisetty2015-01-191-1/+4
| | | | | | | | | Precondition, have Search Bar turned on. 1) Open Settings pannel 2) Toggle Search Bar to off 3) Press "home" to return to Launcher Change-Id: Idda7ed44ee0d6d172845d1447893280569147f7c
* Workspace: Custom default screenNebojsa Cvetkovic2014-12-231-6/+11
| | | | Change-Id: Ic90254f7758b9dbd4997a19474e455230355b772
* Trebuchet: Fix Scrolling Wallpaper toggleRaj Yengisetty2014-12-161-5/+17
| | | | Change-Id: I8c2cc294e1f3a9638023616d80f891ec9b98f3c4
* Fix invisible voice searchAbhisek Devkota2014-12-131-1/+1
| | | | | | | | | | | | | When 'show search bar' is disabled, you can still tap the voice search icon's position (even though view == gone) to launch search action. Partial fix borrowed from 10.2 http://review.cyanogenmod.org/#/c/21584 PS2: Use available variables instead of changing one to protected PS3: Fix mis-paste Change-Id: I268d0e1108992028fd324d42e7dc8b6e11c757eb
* Adjustments for Live Settings:Raj Yengisetty2014-12-021-1/+1
| | | | | | | - Fix view position of PageIndicators after settings update - Fix outlines on Workspace after settings update Change-Id: I2b24cc279e4a9c76ec0b532410c1388b26521b63
* Trebuchet: Further adjustment of panel overview glitch fixArne Coucheron2014-12-011-2/+2
| | | | | | * These values takes care of the glitch also on HDPI devices. Change-Id: Ia901699351ed887a9100bbec6d10be9e92b50c14
* Trebuchet: Fix type on removeExtraEmptyScreensAdnan2014-11-191-1/+1
| | | | Change-Id: I3b42cd6031c0f90122b30aa06b152db70759ff8b
* Fix App Info bug where extra empty screen remains after dropping drag object ↵Raj Yengisetty2014-11-191-0/+5
| | | | | | on the App Info traget. Change-Id: Ibce0b75417cf8682ccdb0c6b755a22f34e735f9d
* Fix Overview Panel glitch when animating Workspace into overview mode.Raj Yengisetty2014-11-191-2/+2
| | | | Change-Id: I12cd8e6e96cdebadfa42590152c4c16e644aded3
* Trebuchet: Implement search bar hide.Adnan2014-11-191-4/+7
| | | | Change-Id: I410452452d5567f75070f85b974749645d9672aa
* Add options to hide icon labels from drawer and homescreenFlamefire2014-11-191-1/+11
| | | | | | | | | | | | | | | | | | | | | | | Forward port from CM 10.2 PS3: Fix typo PS4: Rebase and global defaults PS8: Rebase to head Issue: There is already an Icon section in general, move both settings there or leave separate in their categories? Conflicts: res/values/preferences_defaults.xml res/xml/preferences_drawer.xml res/xml/preferences_homescreen.xml src/com/android/launcher3/AppsCustomizePagedView.java src/com/android/launcher3/Folder.java src/com/android/launcher3/Launcher.java src/com/android/launcher3/PagedViewIcon.java src/com/android/launcher3/Workspace.java Change-Id: I90ae4d2357e5f45fa9261c4eaa0fcf287996e327
* Minimize greedy UI updating for Live SettingsRaj Yengisetty2014-11-191-1/+7
| | | | | | | | Conflicts: src/com/android/launcher3/Launcher.java src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java Change-Id: Ib475af4bea7d45e36ca87be6b66a60d15018aa5b
* Move Scrolling Wallpaper to new Trebuchet SettingsRaj Yengisetty2014-11-191-0/+10
| | | | | | | | Conflicts: src/com/android/launcher3/OverviewSettingsPanel.java src/com/android/launcher3/list/SettingsPinnedHeaderAdapter.java Change-Id: I57961ae9b6f0df334ddd2c4563ddfd7e2939f01e
* PagedView: Transition EffectsNebojsa Cvetkovic2014-11-191-45/+125
| | | | | | | | | | | | | | | | Conflicts: res/layout/overview_panel.xml res/values/cm_arrays.xml res/values/cm_strings.xml res/values/dimens.xml res/values/preferences_defaults.xml src/com/android/launcher3/AppsCustomizePagedView.java src/com/android/launcher3/Launcher.java src/com/android/launcher3/PagedView.java src/com/android/launcher3/Workspace.java src/com/android/launcher3/settings/SettingsProvider.java Change-Id: Ib134705952877165c334181548d577b3dceece68
* Trebuchet Settings UI Refresh.Raj Yengisetty2014-11-191-1/+64
| | | | | | | | | | | | | | | | | | - Overview Panel contains all Launcher Settings - Accessible through long press on Workspace or HW Menu button - Settings are held in a SlidingPanel in the Overview Panel - Replace the Settings shortcut in Overview Panel with Themes shortcut - Replace widgets icon with new widgets icon from Launcher3 - Trebuchet Settings changes no longer require restarting Process - Transition Effects have PNG Sequence to show animation sequence - Remove PageIndicator click event to open Overview Panel in AppTray Contributors: Adrian Foulk - UX Lead Abishek Devkota - Project Manager Hayden Schoen - UX Designer Change-Id: I2186213960cf12e840e814757894fe104551856b
* Merge "Updating promise icon's bitmap and label when onBadgingChanged is ↵Sunny Goyal2014-09-191-0/+32
|\ | | | | | | received" into ub-now-porkchop
| * Updating promise icon's bitmap and label when onBadgingChanged is receivedSunny Goyal2014-09-191-0/+32
| | | | | | | | | | Bug: 17583799 Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
* | Fix NPE in WorkspaceAdam Cohen2014-09-171-1/+1
|/ | | | | Bug: 17503479 Change-Id: Ib20dfd67c5a755cd4b684163bb538a1bf77fa6ca
* Updating shourcuts only when the corresponding user also matches the AppInfoSunny Goyal2014-09-121-15/+28
| | | | | issue: 17480447 Change-Id: I0afbd80e760b7b73b84e483be325b2e905d65a00
* Merge "Handling label and icon from SessionInfo." into ub-now-porkchopSunny Goyal2014-09-051-31/+98
|\
| * Handling label and icon from SessionInfo.Sunny Goyal2014-09-041-31/+98
| | | | | | | | | | | | | | | | | | > The ShortcutInfo stores state as bit flags and not as ints > Intents of auto-install shortcut are automatically updated upon installation > Icons/titles for active sessions are cached in IconCache Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
* | Merge "Updating content of page description frequently." into ub-now-porkchopSunny Goyal2014-09-041-3/+0
|\ \ | |/ |/|
| * Updating content of page description frequently.Sunny Goyal2014-08-281-3/+0
| | | | | | | | | | | | | | | | > Removing unused search icon page indicator issue: 17256565 Change-Id: I95158cf68f98b2af847cefb4d126468b908301e2
* | All apps transition workAdam Cohen2014-08-291-25/+22
|/ | | | | | | | | | | | | -> Fix icons popping in -> Fix issue 17259204 -> posting animation start and buildLayer to allow first frame to be ready. This becomes necessary with RevealAnimator on the render thread, since it can't use FirstFrameAnimatorHelper any longer. -> adding a bit better transition for K, issue 17252683 -> updating a few assets Change-Id: I0b193b4b3b511492a2fad6230cd91e3f0de634f0
* Improving restored widget behaviorSunny Goyal2014-08-271-10/+5
| | | | | | | | | | | > Clicking a broken widget install shows a dialog similar to an app icon > Clicking remove on the dialog removed all components for the corresponding package > Widget pending view shows 'Setup' text instead of icon, if there is enough space Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c