summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update default workspacestaging/lineage-17.0_merge-android-10.0.0_r9Joey2019-12-143-86/+75
| | | | | Change-Id: I852edb6dda3e2030f97eb244ee35c1a647366901 Signed-off-by: Joey <joey@lineageos.org>
* Don't discard custom grid on config changesLuK13372019-12-141-3/+1
| | | | Change-Id: Ibfa2eafec50c9fe79d1e9594ddc68fb5266ecb18
* Specify the component name to start the pickerLuca Stefani2019-12-141-0/+3
| | | | Change-Id: I13d4d088357bee438ac78b632f08cffbac34ad3f
* Specify the wallpaper picker packageLuca Stefani2019-12-141-1/+1
| | | | Change-Id: Ib94bac4546a328462ec83a7d2e1ffca56ef7343a
* Properly expose GridOptionsProviderLuca Stefani2019-12-141-4/+4
| | | | Change-Id: I8268a215257ae0e399c56ac8b44cdfdff8cc92a0
* Revert "Add developer options for grid change for Styles"Luca Stefani2019-12-147-66/+20
| | | | | | This reverts commit 58de5de42ae14bcd688fccd841c537fe8da6f3e9. Change-Id: Ibf3ceeb55230681be2e0de72d2eaa432b3eaf505
* Globally disable debug loggingBruno Martins2019-12-121-3/+1
| | | | | | This also ensures that developer options stay hidden. Change-Id: I34f5ffb5815effc48bf18c2996d3b074b547472f
* Trebuchet: update feed libEdward Cross2019-12-123-59/+102
| | | | Change-Id: I75dffd93536c3827404d8a3feda741b79c08e337
* Fix search bar incorrectly positioned after swiping up to homepaphonb2019-12-121-1/+4
| | | | Change-Id: I3c29fe43ea77f5b3a842242b1e66633eac4459de
* Launcher3: Retrieve the searchbar padding from device profileChris Crump2019-12-121-3/+3
| | | | | | Use device profile to get the desired padding Change-Id: I3f6e058fae48ebcde46e223e9ab7546a08877083
* QSB: request round search barEdward Cross2019-12-123-0/+40
| | | | Change-Id: Icf81d36e467fdbe5cc4e4a081c8e3ec2ebaa4263
* Disable QSB on first screen by defaultArne Coucheron2019-12-121-1/+1
| | | | Change-Id: I24f1682cbad10610f04f7b8ada238b43addd23da
* Change icon drawable paddingArne Coucheron2019-12-121-1/+1
| | | | | | | No reason to have this huge gap between icon and text. Use 4dp like in old Trebuchet. Change-Id: I0b6e320150778891f05c38be4467e730b568d19b
* Trebuchet: Update default workspaceBruno Martins2019-12-123-18/+198
| | | | | | Squash of commits 9eeb786 and c183526. Change-Id: I0ed2e193c8acbe52644412be82e906eab0cb5e30
* Trebuchet: Hide Notification Dots on low RAM devicesAdrian DC2019-12-121-0/+2
| | | | | | | | | | * As the feature is not available for low RAM devices, hide it from the Settings to avoid confusion * Acquire ActivityManager service to read isLowRamDevice Change-Id: I34a6ee1b4838f31194c89327e301d4fd39670c02 Signed-off-by: Adrian DC <radian.dc@gmail.com>
* Trebuchet: Bump min SDK to 26 as required for adaptive iconsBruno Martins2019-12-122-4/+4
| | | | | | | | Addresses the following compilation error: packages/apps/Trebuchet/res/mipmap-anydpi/ic_launcher.xml: error: <adaptive-icon> elements require a sdk version of at least 26. Change-Id: I5684e917ef0b691d99e2e59fd742d7570dfd1007
* Trebuchet: adaptive iconAsher Simonds2019-12-1213-4/+26
| | | | | Change-Id: I84662d7cb35ed751c61c6223dc02f256f5ab3311 Signed-off-by: Joey <joey@lineageos.org>
* Change app name to TrebuchetJoey2019-12-123-3/+5
| | | | | | | Squash of commits 224af31 and 23817f7. Change-Id: I7ccdab88f40a3c8a2075265a45dfe70e824d9f00 Signed-off-by: Joey <joey@lineageos.org>
* proguard: Also keep FixedScaleDrawableDiogo Ferreira2019-12-121-1/+5
| | | | | | | | | FixedScaleDrawable is used for legacy icons if LEGACY_ICON_TREATMENT is set to false. However, it gets removed by proguard, this patch adds a keep rule. Change-Id: Ifcedad251013abefbb52cd7bc0ed2f59aa1bc06f Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* config: enable LAUNCHER3_PROMISE_APPS_IN_ALL_APPSAlexander Martinz2019-12-121-1/+1
| | | | | Change-Id: If8a0e5595734eacb038f31c38bf7b4f151fd4825 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Provider: Initialize createEmptyRowOnFirstScreen without QSBAdrian DC2019-12-121-1/+1
| | | | Change-Id: Ib29b20b051b8fe976f20e92b141c373c8f0cfae3
* DeviceProfile: fix divide by zeroAlexander Martinz2019-12-121-0/+6
| | | | | Change-Id: I8deeeb053a43bac0941950a0c25770b4cc565405 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Launcher3: Can't search out local app by Chineseyingrenw2019-12-121-1/+2
| | | | | | | | | | | | | | Description: Chinese content type is Character.OTHER_LETTER. When key matches,it check the content type. And if type is Character.OTHER_LETTER, it doesn't support search and break. When the content type is Character.OTHER_LETTER, make it work normally. Change-Id: I3713f24c9206fe16a8da2a23e6c90d68079dd533 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* PagedView: fix pointer index out of rangeAlexander Martinz2019-12-121-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stacktrace: java.lang.IllegalArgumentException: pointerIndex out of range at android.view.MotionEvent.nativeGetAxisValue(MotionEvent.java) at android.view.MotionEvent.getX(MotionEvent.java:2201) at com.android.launcher3.PagedView.onTouchEvent(PagedView.java:1557) at android.view.View.dispatchTouchEvent(View.java:11842) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3068) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2700) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3074) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2714) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3074) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2714) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3074) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2714) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3074) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2714) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3074) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2714) at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:464) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1854) at android.app.Activity.dispatchTouchEvent(Activity.java:3292) at com.android.launcher3.Launcher.dispatchTouchEvent(Launcher.java:2781) at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:426) at android.view.View.dispatchPointerEvent(View.java:12092) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5279) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5084) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4634) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4600) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4747) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4608) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4804) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4634) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4600) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4608) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4581) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7259) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7233) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7176) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7431) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:325) at android.os.Looper.loop(Looper.java:147) at android.app.ActivityThread.main(ActivityThread.java:6733) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:845) Issue: SHIFTOS-SW-19 Change-Id: Idcab340d65ee2a4782052b4d1a9de73a886afef7 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Workspace: Allow resizing any widgetNebojsa Cvetkovic2019-12-122-22/+5
| | | | | Change-Id: Iba122eb45d4ba81e53267ff341addfe281cf02fe Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* Launcher3: Stability NullPointer issueyingrenw2019-12-121-1/+1
| | | | | | | | | | | | Description: Compute a child location by recursion, it may not have parent view. When the child doesn't have parent, should break the recursive. Change-Id: I8707712b85c10bf1c1d3860c5b8323aefd455cf2 CRs-Fixed: 1104931
* Launcher3: No Calendarwidget 4x4 widget displayedningl2019-12-122-0/+37
| | | | | | | | | | | There is not enough space to place the Calendarwidget when in the portrait mode for the mobile phone of 480*854. Config the value of dynamic_grid_edge_margin a little smaller for the mobile phone of 480*854. Change-Id: I7be230b6539e47be4bd967c08eaf6f00aa550f75 CRs-Fixed: 1066228
* Launcher3: exclude from recentscretin452019-12-121-0/+1
| | | | Change-Id: Iccbd953241886dbbda01e38225123dfd1761accc
* Launcher3: Google Feed integrationEdward Cross2019-12-1211-8/+240
| | | | | | | | If Google Search is installed, the Google Feed can be found at the -1 screen (which is the very left). This feature is enabled by default. Change-Id: I495196818699fd378cd60e6dd61b07a0ab951762
* Create LineageLauncherJoey2019-12-123-1/+154
| | | | | | | Extends Launcher, will hold our customizations Change-Id: I4a398b624ac60edfed78e4db8e56eb767ffb753e Signed-off-by: Joey <joey@lineageos.org>
* Trebuchet: update build configsJoey2019-12-122-11/+13
| | | | | Change-Id: I072a85e068de4017c8d401785a89dc49296060cf Signed-off-by: Joey <joey@lineageos.org>
* Launcher3: Fix launcher preview renderingpaphonb2019-12-121-3/+14
| | | | | | Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com> Change-Id: I8c6fc263a3021f3ff929bc75b2730962b29d3758 Signed-off-by: DennySPB <dennyspb@gmail.com>
* Merge cherrypicks of [9540994, 9540080, 9540966, 9540888, 9540238, 9540889, ↵android-build-team Robot2019-10-114-6/+46
|\ | | | | | | | | | | 9540890, 9540891, 9540562, 9540996, 9540997, 9540998, 9540999, 9541000, 9540968, 9540969, 9540081, 9541003, 9539963, 9541104, 9541105, 9541144, 9541145, 9541146, 9541147, 9541148, 9541149, 9540970, 9541150, 9541152] into qt-qpr1-b-release Change-Id: I757110e1b8cf1a21acc82cf12ed5e08259bf0166
| * Fix quickswitch flickers/ignored swipesTony Wickham2019-10-113-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't set current page to running task when applying load plan, if we are already settling on a new task to launch. - When starting a new task, finish to the running app if that's the task being started (should not happen with above change) - When disabling free scroll mode, don't snap to a page if we're already on it. This was setting mNextPage so the first check was falsing. Bug: 142068081 Change-Id: I5b392d9726a81c51718d2f94eee6cd4f78b61f69 Merged-In: I5b392d9726a81c51718d2f94eee6cd4f78b61f69 (cherry picked from commit af33f2c9d4063c2ad95a92777cbd5e66d81d3fab) (cherry picked from commit 4d86c804baf6afb9fad0592ab062a4dba6998a03)
| * Don't allow scrolling RecentsView outside navbar during quickswitchTony Wickham2019-10-111-0/+27
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once the inputProxy (OverviewInputConsumer) was enabled, it was never disabled. And while it was enabled, touches above the nav bar would go through to launcher, allowing you to scroll RecentsView (for example) during quick switch transitions. This breaks some assumptions, since it doesn't go through our normal shared swipe state logic that cancels the animation, updates the new end target (e.g. NEW_TASK vs LAST_TASK), etc. Thus, if you tried returning to LAST_TASK via this route, we would end up starting it as a new activity instead of resuming the existing one, causing a flicker (I guess because that TaskView is hidden). Test: - Swipe up from task A to home (to enable input proxy) - Open A - Swipe to B, and during transition scroll back to A from the center of the screen Before, this caused a flicker, now the last scroll is ignored. TODO: we should increase the nav region during quick switch to make it easier to continue scrolling Bug: 136829198 Bug: 138620399 Change-Id: I5ffb53743b728e1909066c5dd18cc9308aff2c7e (cherry picked from commit c9654eb09158a9878d7ff8fc9e588ec2d4903318) (cherry picked from commit 2784315f7d62ceea51651e57eb0348f23fb57c59) (cherry picked from commit 80090d579fc10f4dcb985259b6b70efcc27bd062)
* Snap for 5907400 from 79d6b30dce0eddcdecad4646018284a4db09829b to ↵android-build-team Robot2019-09-281-0/+5
|\ | | | | | | | | | | qt-qpr1-release Change-Id: I31f36b0866a15da09a999ea9a2dbf7e07e32fb6f
| * Fix NPE when trying to construct WorkspaceItemInfo with null intent data.Jon Miranda2019-09-241-0/+5
| | | | | | | | | | | | | | | | | | We change the way we parse the install queue; so this seems to be a rare case when trying to flush an install queue from an old apk with a launcher apk with the new parsing changes. Bug: 140935140 Change-Id: I14db4c3f70ed2e1bc5ad31dec7e6473cd6f8f13c
* | Snap for 5895359 from d2d58656a4ac1da8580c3636a681f36cba0c1ba9 to ↵android-build-team Robot2019-09-241-0/+4
|\| | | | | | | | | | | qt-qpr1-release Change-Id: I05de7323b6e2ab3617eb0e14e30467c67a4be797
| * Don't crash when swiping up if there are no TaskViewsTony Wickham2019-09-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | This can happen in LockTask mode, after enabling Overview. In that case, you are locked to the current task, but are allowed to go to overview but no tasks are shown there. Bug: 139917483 Change-Id: I2180cc5e72c343977ea53cc02907ed8dac0f8bc6 Merged-In: I2180cc5e72c343977ea53cc02907ed8dac0f8bc6 (cherry picked from commit 60bf8c117b2388a8f243f20e673c29656548be4a)
* | Snap for 5892339 from 3adf6ff5a2de10a131e4949cec622fc228d8dbd4 to ↵android-build-team Robot2019-09-2116-45/+122
|\| | | | | | | | | | | qt-qpr1-release Change-Id: I54885c11c1e51f4fb660ec9e391166caead6dc13
| * Merging ub-launcher3-qt-qpr1-dev, build 5884665Sunny Goyal2019-09-1816-45/+122
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Manual Bug:135864059 P4 [Live Tiles] Empty launcher Bug:139137636 P2 Create memory tests for Launcher Bug:139281702 P2 [Enterprise - Cloud DO] GSOC and Mobile Utilities launcher icons are in broken state Bug:140837771 P1 Failing test: AddConfigWidgetTests and AddWidgetTests are failing Bug:141024521 P2 Tapping nav bar during quick switch causes scroll animation to cancel and not resume Bug:141184247 P1 Clear all button not present in fallback recents in 3-button mode Change-Id: I99f4db995a2af5959d5be4182f4e47bb67c9cbc4
| | * Update mIsBeingDragged in onTouchEvent(ACTION_DOWN)Tony Wickham2019-09-181-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic to keep mIsBeingDragged when touching down during a scroll animation was in onInterceptTouchEvent(), which we were bypassing by using onTouchEvent() directly. Now we update mIsBeingDragged on touch down in both onInterceptTouchEvent() and in onTouchEvent(). Bug: 141024521 Change-Id: I77abd4c36f3ccee27e160c817dadb3923e6cfc06
| | * Merge "Allow scroll to clear all in 3 button+fallback mode" into ↵Tony Wickham2019-09-183-4/+10
| | |\ | | | | | | | | | | | | ub-launcher3-qt-qpr1-dev
| | | * Allow scroll to clear all in 3 button+fallback modeTony Wickham2019-09-173-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We weren't calling onSwipeUpToRecentsComplete(), which meant we kept the disallowScrollToClearAll from prepareRecentsUi indefinitely. Also don't update the icon scale if it is supposed to be scaled down, to avoid it from scaling up and overlapping with the app window. Fixes: 141184247 Change-Id: I49406764373e7121e289da7477dcbb58d0b98fd5
| | * | Fix BindWidgetTests.Jon Miranda2019-09-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broken by change I03c31bb308fc496b9fc633c2fde23ae4568f8c44. Bug: 139281702 Test: Ran BindWidgetTest with 8/8 successful. Change-Id: I6a03744c9cd919316ff27b12c50acc70c91d47fa
| | * | Merge "Support for tests that a leak is detected" into ub-launcher3-qt-qpr1-devVadim Tryshev2019-09-173-0/+39
| | |\ \
| | | * | Support for tests that a leak is detectedvadimt2019-09-173-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 139137636 Change-Id: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5 Merged-in: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5
| | * | | Key by both package and user for list of active install sessions.Jon Miranda2019-09-177-22/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the bug where items are left on the home screen for the wrong user. Bug: 139281702 Change-Id: I03c31bb308fc496b9fc633c2fde23ae4568f8c44
| | * | | Make sure that live tile overlay is added only once.Tracy Zhou2019-09-162-5/+21
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users report seeing empty launcher. After adding some logging, live tile overlay can be added twice and removed only once. I added some logic to make sure that it can only be added once. Test: manual Fixes: 135864059 Change-Id: I9d3325c56e76654f1397cc65979b97a6c0a80aee (cherry picked from commit d3ef57b4ddb635580fc5898d22b31193894cda60) (cherry picked from commit 4fa6f63ffd7a5ab230d17e8401d29cae3e5440b8)
| | * | Fully qualifying @Ignorevadimt2019-09-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Strangely, @Ignore-s won't be recognized in ub-launcher-master Bug: 140837771 Change-Id: Ie5e4911d4812d396826b50024943c14c6bfe3376