summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Avoid NPE in startAppShortcutOrInfoActivity()Han Wang2019-12-021-1/+3
| | | | | | * Fixes: https://gitlab.com/LineageOS/issues/android/issues/1450 Change-Id: I18ad506d7991e0190b89b113209389ef3217f2db
* Merge tag 'android-9.0.0_r37' into staging/lineage-16.0_merge-android-9.0.0_r37Kevin F. Haggerty2019-05-078-10/+98
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 9.0.0 Release 37 (PQ3A.190505.002) * tag 'android-9.0.0_r37': Preventing padding from getting reset when the widget updates Revert "Use clear-all recent tasks call" Kill launcher when display size changes Use clear-all recent tasks call Fix missing callback in fallback activity to re-enable high res loader. Update launcher grid for tablet devices. Fix gap between notification dots and their shadows Add null check before playing recents scale down anim Defer starting the high-res thumbnail loader until quick step/scrub Increase max distance for folder creation for tablets. App menu icon launching app info hides taskview menu Change-Id: I73e57c71349e3fcb7c56b89b74fc2ffdbcb45393
| * Preventing padding from getting reset when the widget updatesSunny Goyal2018-08-222-1/+5
| | | | | | | | | | Bug: 112854572 Change-Id: Ia2963310997ca13f2e1f18f7268b0b9b54a53590
| * Kill launcher when display size changesSunny Goyal2018-08-211-4/+69
| | | | | | | | | | | | Bug: 112876936 Test: Verified by changing display cutout overlay Change-Id: I3ca13c7be873509334457e3484ac5604731adeae
| * Update launcher grid for tablet devices.Jon Miranda2018-07-311-1/+6
| | | | | | | | | | | | | | | | * Number of hotseat icons matches number of workspace columns. * Evenly space out the workspace icons. Bug: 111617973 Change-Id: Ia80e6354c8d449f2a397db5fd432cebc9f23027f
| * Merge "Increase max distance for folder creation for tablets." into ↵TreeHugger Robot2018-07-271-1/+3
| |\ | | | | | | | | | ub-launcher3-edmonton-polish
| | * Increase max distance for folder creation for tablets.Jon Miranda2018-07-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tablets generally have larger cell sizes (relative to phones, and relative to the icon sizes with the cells). By increasing the distance from 55% to 75% of icon size, it is easier for users to meet the folder creation threshold before the icon reorder timeout is triggered. Bug: 110796219 Change-Id: I8264390b8510340f4062e05ec12d0755e93a80d8
| * | Merge "Fix gap between notification dots and their shadows" into ↵Tony Wickham2018-07-271-3/+3
| |\ \ | | | | | | | | | | | | ub-launcher3-edmonton-polish
| | * | Fix gap between notification dots and their shadowsTony2018-07-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a rounding issue due to usnig integer division when we meant float Bug: 73331123 Change-Id: Ic3deb1c26aa00808a929e1303602656ce532963d
| * | | Merge "Defer starting the high-res thumbnail loader until quick step/scrub" ↵TreeHugger Robot2018-07-181-0/+6
| |\ \ \ | | |_|/ | |/| | | | | | into ub-launcher3-edmonton-polish
| | * | Defer starting the high-res thumbnail loader until quick step/scrubWinson Chung2018-07-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When hitting the home button, we may be loading high-res thumbnails unnecessarily since the high-res loader is already enabled when Launcher is started. Bug: 111515602 Bug: 111156069 Change-Id: I367993b4ddf653b816355df005c745caed5e794a
| * | | App menu icon launching app info hides taskview menuMatthew Ng2018-07-131-0/+6
| |/ / | | | | | | | | | | | | | | | Change-Id: I0b493229d18027adbb7c1ee15b38d859e0b3a434 Fixes: 111405044 Test: go to overview, tap icon, tap app info
* | | Trebuchet: Disallow status bar swipe on widgets sheetLyubo2019-04-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes: https://gitlab.com/LineageOS/issues/android/issues/372. * Status bar swipe feature interferes with scrolling there are enough widgets to scroll through. If there aren't enough widgets to scroll through, the swipe down will close the widgets sheet, so there is no use for this feature here. Change-Id: Icecf1f0f8d093a2f5c61d1a0ce7975cbc98cf2a2
* | | Trebuchet: Implement protected appsLuca Stefani2019-02-0512-256/+494
| | | | | | | | | | | | | | | Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Change-Id: Ide8f96ce360916fab44305c5f4a7c29ee31c179b
* | | Set isInitialDown before working on the ArrayLuca Stefani2019-02-041-2/+2
| | | | | | | | | | | | | | | | | | | | | * Also move isFinalUp one call up Matches Google Change-Id: I8aa953227e119f9bb7707e72ce92f140b1b9d82b
* | | Trebuchet: Add reverse engineered Q swipe down gestureLuca Stefani2019-02-043-1/+225
| | | | | | | | | | | | Change-Id: I4b6fd72299ebd34fa17397eacbb14617b4cedc90
* | | Trebuchet: implement hidden appsJoey2019-01-268-0/+717
| | | | | | | | | | | | | | | | | | Signed-off-by: Joey <joey@lineageos.org> Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Change-Id: I10c35407820373a1d5f84b237ac449398e076dcd
* | | Trebuchet: reorganize preferencesJoey2018-12-271-14/+23
| | | | | | | | | | | | | | | Change-Id: I1fb2877bdb0fd031f43240feeca21a42b65eb09e Signed-off-by: Joey <joey@lineageos.org>
* | | Trebuchet: allow disabling workspace editJoey2018-12-276-3/+29
| | | | | | | | | | | | | | | Change-Id: I503e19cbc512eac0e4a8c8bccc16a6ccc0e805da Signed-off-by: Joey <joey@lineageos.org>
* | | QSB: request round search barEdward Cross2018-12-272-0/+35
| | | | | | | | | | | | Change-Id: Icf81d36e467fdbe5cc4e4a081c8e3ec2ebaa4263
* | | Disable QSB on first screen by defaultArne Coucheron2018-11-131-1/+1
| | | | | | | | | | | | Change-Id: I24f1682cbad10610f04f7b8ada238b43addd23da
* | | Revert "Removing support for app prediction from Launcher3"Joey2018-11-138-22/+355
| | | | | | | | | | | | | | | | | | This reverts commit b1d222e9a76cc733cead3343a4b7c1e39daa190c. Change-Id: I5d7ed938c9817527c251a08b57a7f1e6564f3e28
* | | Trebuchet: add toggle for desktop and drawer labelsJoey2018-11-132-4/+24
| | | | | | | | | | | | | | | Change-Id: I98063b7adaf22029c4bfa50d2cac730f3612e121 Signed-off-by: Joey <joey@lineageos.org>
* | | Launcher3: custom gridJoey Rizzoli2018-11-133-7/+148
| | | | | | | | | | | | | | | | | | Change-Id: I097ab67ae0adc4e052df0521b72f14fd9a979417 Signed-off-by: Arne Coucheron <arco68@gmail.com> Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* | | Trebuchet: update icon shape configurationsJoey Rizzoli2018-11-131-1/+2
| | | | | | | | | | | | | | | Change-Id: I76a571ce2b53214ef197a5164f584cb4dc2d3ecf Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* | | Trebuchet: allow non-developers to change icon shapeJoey2018-11-011-0/+4
| | | | | | | | | | | | | | | Change-Id: Ic21d49e15e7e161108aec38c31fe7db8241dffe9 Signed-off-by: Joey <joey@lineageos.org>
* | | Trebuchet: Hide Notification Dots on low RAM devicesAdrian DC2018-11-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | config: enable LAUNCHER3_PROMISE_APPS_IN_ALL_APPSAlexander Martinz2018-11-011-1/+1
| | | | | | | | | | | | | | | Change-Id: If8a0e5595734eacb038f31c38bf7b4f151fd4825 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* | | Provider: Initialize createEmptyRowOnFirstScreen without QSBAdrian DC2018-11-011-1/+1
| | | | | | | | | | | | Change-Id: Ib29b20b051b8fe976f20e92b141c373c8f0cfae3
* | | DeviceProfile: fix divide by zeroAlexander Martinz2018-11-011-0/+6
| | | | | | | | | | | | | | | Change-Id: I8deeeb053a43bac0941950a0c25770b4cc565405 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* | | Launcher3: Can't search out local app by Chineseyingrenw2018-11-011-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>
* | | logging: prevent NPE at logDeepShortcutsOpenAlexander Martinz2018-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | getLaunchProviderRecursive(View) can return null. Check if provider is null before using it. Change-Id: I8cd157ba315e1dcc1fed428e0474b55b774bbd2f Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* | | PagedView: fix pointer index out of rangeAlexander Martinz2018-11-011-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 Cvetkovic2018-11-012-22/+5
| | | | | | | | | | | | | | | Change-Id: Iba122eb45d4ba81e53267ff341addfe281cf02fe Signed-off-by: Joey Rizzoli <joey@lineageos.org>
* | | Launcher3: Stability NullPointer issueyingrenw2018-11-011-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
* | | Lint fix: IS_DEBUG_DEVICE: Implied default localeTobias Dubois2018-11-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Use the ROOT locale to make sure toLowerCase has consistent behavior regardless of the currently set language. Test: Manual Change-Id: Ie43f76cbc15eee0d96314e92d2acd5abb22f7077
* | | Use View.getHeight() instead of Canvas.getHeight() for PageIndicatorDotsTobias Dubois2018-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use View.getHeight() instead of Canvas.getHeight() to get the same height regardless of using hardware or software accelerated drawing. Test: manual Change-Id: I475afef017102d7968f28a7aab8116238af3d90d
* | | Fix overlapping FloatingViewType IntDefTobias Dubois2018-11-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | TYPE_DISCOVERY_BOUNCE and TYPE_QUICKSTEP_PREVIEW have the same value. Make sure each flag has a unique value. Test: manual Change-Id: I0fec3f27ffc31bad80d3af7b3baa3631b61b2567
* | | Launcher3: Google Feed integrationEdward Cross2018-11-014-8/+155
| | | | | | | | | | | | | | | | | | | | | | | | 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 LineageLauncherJoey2018-11-012-0/+163
|/ / | | | | | | | | | | | | Extends Launcher, will hold our customizations Change-Id: I4a398b624ac60edfed78e4db8e56eb767ffb753e Signed-off-by: Joey <joey@lineageos.org>
* | Fix clipping issue on adaptive iconsHyunyoung Song2018-06-281-4/+3
| | | | | | | | | | | | | | | | Bug: 62372639 Verified the one last device, b***line. Change-Id: I1d97d0cbe0afe76ee21de5964abf639fb4c0fceb
* | Fix clipping issue on adaptive iconsHyunyoung Song2018-06-282-3/+4
|/ | | | | | Bug: 62372639 Change-Id: Ie9dcf18f61c45225823dfbbf85578edcbffd86b9
* Last minute swipe up overshoot tweaksAdam Cohen2018-06-271-3/+9
| | | | | | b/109709720 Change-Id: Ie3831289a9af2ba4b03fcbb4f2cbb3f4c2431aec
* Merge "Swipe up overshoot always plays" into ub-launcher3-edmonton-polishTony Wickham2018-06-271-7/+75
|\
| * Swipe up overshoot always playsTony2018-06-271-7/+75
| | | | | | | | | | | | | | | | | | | | Instead of using an OvershootInterpolator, we adjust the end progress to > 1 and add a second interpolator to settle back to 1. That way, even if the animation runs starting very late, e.g. 1.0, it still has room to overshoot. We use this same OvershootParams class to calculate an overshoot for a blocked long fling as well. Bug: 109709720 Change-Id: I43152237e4350f93e7c462c22e68d09d05c1dd57
* | Revert "Add stagger and "springs" to app closing transition."Jonathan Miranda2018-06-261-23/+0
| | | | | | | | | | | | | | | | This reverts commit cd57901ca460975205af9ba6cd5cd96a7225fc15. Reason for revert: <INSERT REASONING HERE> Change-Id: I13e9d2db8f6d6118a1448ba04b67c81b4e485447
* | Revert "Fix typo in horizontalShift"Jonathan Miranda2018-06-261-1/+1
| | | | | | | | | | | | | | | | This reverts commit e45b3e21a95e40168a35c4bcd0f425ba2e56bc11. Reason for revert: <INSERT REASONING HERE> Change-Id: I4d2956d3f8d23e8f9579fd61418bc84e7226ef60
* | Merge "Revert "Tune app closing/launcher resume animation "spring" values."" ↵Jonathan Miranda2018-06-261-5/+3
|\ \ | | | | | | | | | into ub-launcher3-edmonton-polish
| * | Revert "Tune app closing/launcher resume animation "spring" values."Jonathan Miranda2018-06-261-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c9a7c50fac2552b96c4f80587494afcb0da78aab. Reason for revert: <INSERT REASONING HERE> Change-Id: I7ed4270b742803265ed4e3e13b63688842e0b48c
* | | Add additional call to onStop() to stablize PIP position.Tracy Zhou2018-06-261-0/+2
|/ / | | | | | | | | | | Bug: 110799409 Test: Manual Change-Id: I361eeadbf298bb239d8e373f3c6fa49d1f2410a6