summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | Allowing UserHandle to be passed in the intent when creating AppInfoSunny Goyal2015-06-261-21/+14
| | | | | | | | | | | | | | | | > Removing createShortcut with userHandle, as shortcuts can only be for the primary user. Bug: 22070517 Change-Id: Ifc58a76d0f1e0ab8f1943b46588cc19dd88bdda1
* | Merge "Announce content desc of workspace immediately after unlocking the ↵Hyunyoung Song2015-06-261-0/+2
|\ \ | | | | | | | | | lock screen. b/22051420" into ub-launcher3-burnaby
| * | Announce content desc of workspace immediately after unlocking the lock screen.Hyunyoung Song2015-06-251-0/+2
| | | | | | | | | | | | | | | | | | b/22051420 Change-Id: I41ab93782383c04e0074d87632ebe8d884a8e208
* | | Merge "Exposing drag methods with user info." into ub-launcher3-burnabyWinson Chung2015-06-251-9/+30
|\ \ \
| * | | Exposing drag methods with user info.Winson Chung2015-06-251-9/+30
| |/ / | | | | | | | | | Change-Id: I974b67d23d3d29795c1c1d24e1ecf212b52e3912
* / / Ensuring that we always update the predicted apps set.Winson Chung2015-06-251-1/+1
|/ / | | | | | | Change-Id: Ieecf019442dcf4af42463ed6cbc4cdcd19468dec
* | Refactoring fast scroller.Winson Chung2015-06-231-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | - Fixing issue with fast scroller not fitting name width. - Refactoring fast scrolling/scroll bar code out of base recycler view - Adding animations to fast scroller to match design - Smooth scrolling when jumping between app rows - Fixing issue with fast scroller jumping when you first pick it up - Fixing issue with wrong background paddings being used Bug: 21874346 Bug: 22031923 Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
* | Merge "Moving predicted apps callbacks to use ComponentKey." into ↵Winson Chung2015-06-181-3/+2
|\ \ | | | | | | | | | ub-launcher3-burnaby
| * | Moving predicted apps callbacks to use ComponentKey.Winson Chung2015-06-181-3/+2
| | | | | | | | | | | | | | | | | | Bug: 21270185 Change-Id: If2d9dd77235e7a96de96a1a5441a589ef8a72a7f
* | | Add null-check for workspace/hotseat.Jun Mukai2015-06-171-12/+24
|/ / | | | | | | | | | | | | | | | | | | | | I assumed that they are non-null, but reportedly it was wrong. This method can be invoked before the views are fully initialized. Also hotseat can be null as far as I see setupViews(), therefore null-check and 'importance stored' flag check should be done separately. Bug: 21779078 Change-Id: I3f17226f887c38adf2b1fb7ee2a016e00ffc0eb4
* | Removing ContentObserver in launcherSunny Goyal2015-06-161-34/+4
| | | | | | | | | | | | | | > Using callback insted of using a content observer > Setting the listener in LauncherAppState to prevent resource leak Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84
* | Merge "Refactoring all apps search to support external search bar." into ↵Winson Chung2015-06-151-98/+29
|\ \ | | | | | | | | | ub-launcher3-burnaby
| * | Refactoring all apps search to support external search bar.Winson Chung2015-06-151-98/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding support for an external search bar that can be used to search a container view. This adds a new interface AllAppsSearchController which manages the external search bar. Each controller will have its own search implementation which means that we no longer need a common AppSearchManager interface. - Removing elevation controller as we no longer have a builtin search bar in all apps - Refactoring container view insets so that they behave the same in all containers. - Refactoring apps view to ensure that we only update the number of columns with the available width - Cleaning up LauncherCallbacks interface Bug: 20127840 Bug: 21494973 Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
* | | Read rotation setting correctly from the wallpaper picker.Rahul Chaturvedi2015-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | If reading the rotation setting without the multi-process flag, the WallpaperPickerActivity usually picks up a cached value. Specifying the multi-process flag during the read fixes this and the wallpaper picker always has the correct rotation setting. Change-Id: Ic3639f8cd694674e92c8940b753c6bc30486076d
* | | Merge "Using content provider to update launcher settings" into ↵Sunny Goyal2015-06-121-33/+17
|\ \ \ | |/ / |/| | | | | ub-launcher3-burnaby
| * | Using content provider to update launcher settingsSunny Goyal2015-06-121-33/+17
| | | | | | | | | | | | | | | | | | | | | | | | > Removing cross process preference file > Removed broadcast listener management for settings changes > Defining content provider method to get/set laucnehr preferences Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
* | | Tying accessibility drag lifecycle to that of dragControllerSunny Goyal2015-06-081-4/+2
|/ / | | | | | | | | Bug: 20865291 Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65
* | Merge "Removing LauncherApplication to enable us to easily catch ↵Sunny Goyal2015-06-081-1/+0
|\ \ | | | | | | | | | LauncherAppState errors" into ub-launcher3-burnaby
| * | Removing LauncherApplication to enable us to easily catch LauncherAppState ↵Sunny Goyal2015-06-041-1/+0
| | | | | | | | | | | | | | | | | | errors Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60
* | | Merge "Fixing preloaded widget not getting used for animation" into ↵Sunny Goyal2015-06-081-0/+3
|\ \ \ | | | | | | | | | | | | ub-launcher3-burnaby
| * | | Fixing preloaded widget not getting used for animationSunny Goyal2015-06-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > The preloaded widget was being set in a different instance of PendingAddWidgetInfo and was never getting used for animation. bug: 20699153 Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
* | | | Code cleanupSunny Goyal2015-06-051-32/+8
| |/ / |/| | | | | | | | | | | | | | | | | | | | > Removing obsolete logging > Removing unused methods > Removing resource leak warning due to non-static handler class in launcher Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
* | | Use a broadcast receiver instead of a settings observer.Rahul Chaturvedi2015-06-041-24/+36
| | | | | | | | | | | | | | | | | | | | | | | | Settings observer doesn't work if a setting is modified in another process, hence we instead register a receiver which listens for a signal from the settings process that the rotation preference has changed. Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
* | | Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | > Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
* | | Adding context for app launches.Winson Chung2015-06-021-11/+3
|/ / | | | | | | | | Bug: 21492784 Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
* | Removing some synthetic method creationSunny Goyal2015-06-021-2/+2
| | | | | | | | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* | Adding an asynchronous search interface for apps searchSunny Goyal2015-06-011-0/+11
| | | | | | | | Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e
* | Merge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnabyRahul Chaturvedi2015-06-011-5/+53
|\ \
| * | Add the Allow Rotation setting to Launcher3.Rahul Chaturvedi2015-06-011-5/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds a Settings activity along with the code needed to provide a "Allow Rotation" setting to all phones and tablets. This setting is set to false for phones and true for tablets. On changing the setting from unlocked to locked, the launcher (and the Settings activity) will get locked to the orientation the user was in when he disabled "Allow Rotation". This is consistent with how the natural rotation feature of Android works. Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344
* | | Merge "Removing file IO used for checking configuration change" into ↵Sunny Goyal2015-05-281-108/+0
|\ \ \ | |/ / |/| | | | | ub-launcher3-burnaby
| * | Removing file IO used for checking configuration changeSunny Goyal2015-05-261-108/+0
| | | | | | | | | | | | | | | | | | | | | > This check was used for flushing the cache, but since the cache is backed by a DB, this has no effect as same icons are loaded again Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a
* | | Removing SmoothPagedView as all its methods are disabledSunny Goyal2015-05-271-3/+4
| | | | | | | | | | | | Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6
* | | Merge "Introduce LauncherSearchCallback to handle search overlay status." ↵Jun Mukai2015-05-271-0/+41
|\ \ \ | | | | | | | | | | | | into ub-launcher3-burnaby
| * | | Introduce LauncherSearchCallback to handle search overlay status.Jun Mukai2015-05-121-0/+41
| | | | | | | | | | | | | | | | | | | | Bug: 20011047 Change-Id: I93cab4e0614b9658b4b657dd98dca68d42580e63
* | | | Fixing workspace scrim not being drawnSunny Goyal2015-05-261-2/+2
| |/ / |/| | | | | | | | Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71
* | | Moving all apps code into sub package.Winson Chung2015-05-221-15/+6
| | | | | | | | | | | | | | | | | | | | | - Renaming resources, dimens, etc to be more consistent - Removing old AppsCustomize resources and other unused code Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
* | | Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-3/+8
| | | | | | | | | | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* | | Refactoring DeviceProfileAdam Cohen2015-05-211-22/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -> 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
* | | Merge "Icons are not updated to TYPE_APPLICATION during restore" into ↵Sunny Goyal2015-05-211-4/+3
|\ \ \ | | | | | | | | | | | | ub-launcher3-burnaby
| * | | Icons are not updated to TYPE_APPLICATION during restoreSunny Goyal2015-05-211-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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
* | | | Merge "Preventing overdraw. Drawing background directly at the window, ↵Sunny Goyal2015-05-211-6/+20
|\ \ \ \ | |/ / / |/| | | | | | | instead of the rootview." into ub-launcher3-burnaby
| * | | Preventing overdraw. Drawing background directly at the window, instead ofSunny Goyal2015-05-211-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | the rootview. Change-Id: Ie974752e739d9acd1fbd765809c671f82f462644
* | | | Load PackageItemInfo in background thread to prevent ANRHyunyoung Song2015-05-211-9/+10
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-2/+3
| | | | | | | | | | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* | | Removing some thread priority management logicSunny Goyal2015-05-181-29/+10
| | | | | | | | | | | | | | | | | | > Not saving folder id in onSaveInstance as it is not used. Change-Id: I176beb77cafe27ec4b7500d65dc86287d2f2e0cb
* | | Transition from back to showing widget tray if shortcut/Widget configure ↵Hyunyoung Song2015-05-151-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Various lint error fixes.Sunny Goyal2015-05-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* | | Preventing NullPointerException when cancelling a shortcut additionSunny Goyal2015-05-121-1/+3
| | | | | | | | | | | | | | | Bug: 21024018 Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457
* | | Exploring dense all apps layout.Winson Chung2015-05-111-2/+7
|/ / | | | | | | | | | | | | | | | | - Disabling section headers in all apps on tablet layouts - Fixing issue with predictions not showing on rotation - Fixing issue with over-aggressive dismissing of keyboard & filtered app state - Fixing issue where the container bounds were running straight up to the nav bar Change-Id: I5a5a56afa75b50be96af4894bf785ffbb1b15fb3
* | Merge "Various icon size changes" into ub-launcher3-burnabySunny Goyal2015-05-111-13/+13
|\ \