summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Making all provider calls using content resolver.Sunny Goyal2015-10-207-53/+107
| | | | | | This will allow us to easily move db creation out of onCreate Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
* resolve merge conflicts of fe3db428ab to ub-launcher3-master.Sunny Goyal2015-10-2010-64/+32
|\ | | | | | | Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
| * Refactoring getPreferenceKey methodSunny Goyal2015-10-2010-63/+32
| | | | | | | | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
* | Scaling down the icon before applying the user badgeSunny Goyal2015-10-199-40/+31
| | | | | | | | | | | | | | > This also saves memory only create one new bitmap while loading instead of two Bug: 25027252 Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f
* | resolve merge conflicts of fb4014daa3 to ub-launcher3-master.Winson2015-10-165-6/+21
|\| | | | | | | Change-Id: I6d84a7f3fad757bf139b6ea0001ac6ab88850996
| * Merge "Fix issue with source params not reporting predicted apps." into ↵Winson Chung2015-10-165-6/+21
| |\ | | | | | | | | | ub-launcher3-burnaby-polish
| | * Fix issue with source params not reporting predicted apps.Winson2015-10-165-6/+21
| | | | | | | | | | | | | | | Bug: 25020080 Change-Id: Iaa67ccbb3e3a6c264aaa4fa3c915faad8a69bbbc
* | | Add LauncherCallbacks method to add additional search widget options. am: ↵Tony Wickham2015-10-163-0/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | 775455c4a8 am: f79d347a61 * commit 'f79d347a615023d9db721e6483d08033aaabd575': Add LauncherCallbacks method to add additional search widget options.
| * | Add LauncherCallbacks method to add additional search widget options.Tony Wickham2015-10-163-0/+10
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | am: 775455c4a8 * commit '775455c4a8266655bf43b943e969d42ac32609ec': Add LauncherCallbacks method to add additional search widget options.
| | * | Add LauncherCallbacks method to add additional search widget options.Tony Wickham2015-10-163-0/+10
| | | | | | | | | | | | | | | | | | | | Bug: 25000458 Change-Id: I5e8d48617568569bc6e4f284749c3ed9fb20a68f
* | | | am fb062c63: Close some Cursors and call super.onFinishInflate().Tony Wickham2015-10-162-2/+3
|\| | | | | | | | | | | | | | | | | | | * commit 'fb062c63355f65e6df9e99cbf4cce49cee2900d1': Close some Cursors and call super.onFinishInflate().
| * | | Close some Cursors and call super.onFinishInflate().Tony Wickham2015-10-162-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Android Studio gave these warnings, and they seem like good ideas. Change-Id: I9a4d3997fd18e86e007e4511e1ac9e8a75509265
* | | | resolved conflicts for a8709ddb to ub-launcher3-masterTony Wickham2015-10-155-28/+59
|\| | | | | | | | | | | | | | | Change-Id: I172395e6e172914627b6dec721070a66520557b1
| * | | Merge "Fix "The specified child already has a parent" ↵Tony Wickham2015-10-155-28/+59
| |\ \ \ | | | | | | | | | | | | | | | IllegalStateException." into ub-launcher3-burnaby-polish
| | * | | Fix "The specified child already has a parent" IllegalStateException.Tony Wickham2015-10-155-29/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was due to a race condition between removing a prebound widget view from the drag layer and adding the same view to the workspace upon dropping it; if you let go of the widget immediately after picking it up, the latter happened before the former. Specifically, the flow was: long-click a widget --> drop --> remove the view from the drag layer if it's not null (it is, so nothing happens) --> the view is finally bound/inflated and added to the drag layer --> add the view to the workspace --> already has a parent. There are actually 2 problems here: one is that the bind/inflate is asynchronous, and can therefore happen after dropping the widget view being inflated, and the other is that the view is added to the workspace even though the transition has barely started (we usually ignore drops if the transition is less than half complete). It turns out that this second problem was also due to a race condition, this time between dropping a widget or app onto the workspace and calling LauncherStateTransitionAnimation.dispatchOnLauncherTransitionStart(). If the drop happened before the dispatch, as in the case of the crash, then the drop was accepted because the transition progress was still 1.0 from the previous transition. I fixed the first problem by removing the drag layer widget view in Launcher where it is potentially used instead of Workspace. And I fixed the second problem by setting mTransitionProgress to 0 in Workspace.onLauncherTransitionPrepare(). I also added some debugging logs. Bug: 23896857 Change-Id: I66944e6d3f23b70dea15f7fb01af0763a1bfcbda
* | | | | am 44b48f77: am 28c6b963: Showing a permission prompt for direct call shortcutsSunny Goyal2015-10-141-0/+37
|\| | | | | | | | | | | | | | | | | | | | | | | | * commit '44b48f77027c386885ed459de501f9d822abac9c': Showing a permission prompt for direct call shortcuts
| * | | | am 28c6b963: Showing a permission prompt for direct call shortcutsSunny Goyal2015-10-141-0/+37
| |\ \ \ \ | | | |/ / | | |/| / | | |_|/ | |/| | * commit '28c6b963d4ccac73ab857c839420513dd560945c': Showing a permission prompt for direct call shortcuts
| | * | Showing a permission prompt for direct call shortcutsSunny Goyal2015-10-121-0/+37
| | | | | | | | | | | | | | | | | | | | Bug: 24580949 Change-Id: Idc92f9f5979a730f43b4905af2bc47b6834dc7a7
* | | | resolved conflicts for e9f27273 to ub-launcher3-masterWinson2015-10-131-52/+85
|\| | | | | | | | | | | | | | | Change-Id: I96b062c3309eadf4d41a5f00ea74740bab78b358
| * | | Fixing issue with overview panel buttons.Winson2015-10-131-47/+80
| | | | | | | | | | | | | | | | | | | | Bug: 22699895 Change-Id: I8a2f05a6008343327e34cbd3169e4056729e0b75
* | | | am a295048a: Increase folder cell width slightly.Tony Wickham2015-10-121-1/+2
|\| | | | | | | | | | | | | | | | | | | * commit 'a295048a69d35b5adc3f021c3d40c32700cc9629': Increase folder cell width slightly.
| * | | Increase folder cell width slightly.Tony Wickham2015-10-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The increased breathing room makes it more likely that long app names will fit in the folder cells without being cut off. Bug: 22462641 Change-Id: I110ede040f9e8fdddbf0c4e7a395ac71435559f3
* | | | resolved conflicts for f685c7e5 to ub-launcher3-masterTony Wickham2015-10-123-18/+46
|\| | | | | | | | | | | | | | | Change-Id: Iddf78c166f9ab89ffae2ddc819c9ba5cf5e988be
| * | | Merge "Actually call LauncherTransitionable.onLauncherTransitionStep()." ↵Tony Wickham2015-10-093-19/+46
| |\ \ \ | | | | | | | | | | | | | | | into ub-launcher3-burnaby-polish
| | * | | Actually call LauncherTransitionable.onLauncherTransitionStep().Tony Wickham2015-10-053-19/+46
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, it was only called at the start and end of the transition; now it is called as the animation interpolates. Specifically, a dummy ValueAnimator is played alongside the transition animation and calls dispatchOnLauncherTransitionStep() as it goes. One place where this is important is in Workspace, where mTransitionProgress is used to determine things like whether the workspace should accept a drop - hence the bug that caused apps dragged from All Apps to vanish when dropped before the transition ended. Bug: 24215358 Change-Id: I32cd633c53557305caf84e87c9a4d4f07eef2223
* | | | resolved conflicts for fa3c369c to ub-launcher3-masterTony Wickham2015-10-094-11/+41
|\| | | | | | | | | | | | | | | Change-Id: I6bfc3d3b731a414060d86d4f1dfc5480c279edc9
| * | | am 37860923: Merge "Added launcher callback to specify search bar height." ↵Tony Wickham2015-10-094-13/+43
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | into ub-launcher3-burnaby * commit '37860923619b1e467975a74764dff03ab657bdc7': Added launcher callback to specify search bar height.
| | * | Merge "Added launcher callback to specify search bar height." into ↵Tony Wickham2015-10-094-13/+43
| | |\ \ | | | | | | | | | | | | | | | ub-launcher3-burnaby
| | | * | Added launcher callback to specify search bar height.Tony Wickham2015-10-084-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The search bar can now be be normal or tall. When it is set to tall, the hotseat and page indicators move down so that the workspace isn't compressed quite as much. Change-Id: Id92a946eab3a93524999f92efd847a501a95f002
* | | | | resolved conflicts for d70a4b7b to ub-launcher3-masterTony Wickham2015-10-083-14/+37
|\| | | | | | | | | | | | | | | | | | | Change-Id: Ib04f80eeebf551fc026925830fc4739d1c620513
| * | | | am d6b4037b: Grid adjustments, specifically for Ryu.Tony Wickham2015-10-093-16/+37
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit 'd6b4037b093445fefa7d036da339dd549fae7a9b': Grid adjustments, specifically for Ryu.
| | * | | Grid adjustments, specifically for Ryu.Tony Wickham2015-10-083-16/+37
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Less than 14% of the screen is used for left/right workspace padding. (To be clear, this means 7% for the left and 7% for the right.) > Hotseat icons are the same size as workspace icons. > Far left and right hotseat edges line up with workspace edges. > All Apps button is scaled down 8dp. Bug: 24003478 Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
* | | | am 56c73604: Verify that the widget id is valid, before binding the widgetSunny Goyal2015-10-081-8/+17
|\| | | | | | | | | | | | | | | | | | | * commit '56c7360497823ed83d4eb04ef32c117e9c5608d6': Verify that the widget id is valid, before binding the widget
| * | | Verify that the widget id is valid, before binding the widgetSunny Goyal2015-10-081-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 23820213 Bug: 24054205 Bug: 24582322 Change-Id: I25a09b0a2a706812a7d82729b5dc554ffba84a2a
* | | | am 5802588d: Merge "Update the widget spans after the provider changes" into ↵Sunny Goyal2015-10-083-3/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish * commit '5802588dc067f69914a0adaaec1c15825f0e720d': Update the widget spans after the provider changes
| * | | Merge "Update the widget spans after the provider changes" into ↵Sunny Goyal2015-10-083-3/+6
| |\ \ \ | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish
| | * | | Update the widget spans after the provider changesSunny Goyal2015-10-053-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 24003213 Change-Id: I51ad5919a808ef10385d62a48a94589eefcb06bc
* | | | | am bbf01846: Using 23 instead of Build.Versoin.M until the final SDK is ↵Sunny Goyal2015-10-081-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | available. * commit 'bbf0184603ce9395173f5e412d8188b4b0910f9e': Using 23 instead of Build.Versoin.M until the final SDK is available.
| * | | | Using 23 instead of Build.Versoin.M until the final SDK is available.Sunny Goyal2015-10-081-2/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I9f8f6fe049afcd0ceb0797ddc803a2e77bab0437
| * | | | Moving a few testing classes to a separate packageSunny Goyal2015-10-079-92/+144
| | | | | | | | | | | | | | | | | | | | Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
* | | | | am 21d89fbf: Merge "Fixing overscroll effect when the navigation bar is ↵Sunny Goyal2015-10-074-4/+43
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | opaque" into ub-launcher3-burnaby-polish * commit '21d89fbf8c444c64a4c85d25a25bbe3b79719de9': Fixing overscroll effect when the navigation bar is opaque
| * | | | Merge "Fixing overscroll effect when the navigation bar is opaque" into ↵Sunny Goyal2015-10-074-4/+43
| |\ \ \ \ | | | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish
| | * | | | Fixing overscroll effect when the navigation bar is opaqueSunny Goyal2015-09-224-4/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The navigation bar is opaque on mobile devices in landscape mode. Launcher should ignore the right insets and draw the edge effect appropriately. Also draw the black bar under the navigation bar, just in case we assume it to be opaque, but it was not actually opaque. Bug: 18526657 Change-Id: I1d49dcb82b8a5ee25009bc738cd9b8c0c5c88263
* | | | | | am 6fb929e0: Verifying that the table was successfully created during ↵Sunny Goyal2015-10-071-42/+62
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialzation * commit '6fb929e0038a9d03b60540fdbf6b6914146f7b21': Verifying that the table was successfully created during initialzation
| * | | | | Verifying that the table was successfully created during initialzationSunny Goyal2015-10-061-42/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Table creation sometimes fails scilently, which leads to a crash loop. This way, we will try to create a table every time after crash, so the device would eventually be able to recover. Bug: 24263894 Change-Id: Ic0169d33f4092042423afa24320182786c544d47
* | | | | | am d47807d7: am 3a3517fb: Add widget size options for QSB.Tony Wickham2015-10-072-5/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd47807d7a97d4ab555b2f9be882591c08955d699': Add widget size options for QSB.
| * | | | | am 3a3517fb: Add widget size options for QSB.Tony Wickham2015-10-062-5/+28
| |\ \ \ \ \ | | | |_|/ / | | |/| | / | | |_|_|/ | |/| | | * commit '3a3517fb6c17120c6d11e5c95a0de4e81205d0ae': Add widget size options for QSB.
| | * | | Add widget size options for QSB.Tony Wickham2015-10-062-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 24704753 Change-Id: I3e16c1f67a67b08b3843f7f38312447bdfa6a91e
| * | | | Merge "Jailing the saved instance state of all the dynamically generated ↵Sunny Goyal2015-10-054-45/+87
| |\ \ \ \ | | | | | | | | | | | | | | | | | | views" into ub-launcher3-burnaby-polish
| | * | | | Jailing the saved instance state of all the dynamically generated viewsSunny Goyal2015-10-054-45/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using itemId instead of generating a new id for each item. This is because if the process gets killed, View.generateId will get reset but we will still receive the generated item id map in onRestoreInstance. This will cause conflicts with newly generated item ids. We wrap all the generated homescreen views inside a single sparse array. This ensures that we do not cause any conflict with dynamically generated views in other parts of the UI. Bug: 16840760 Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240