summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* Log the parent of the PREDICTION container type (ALLAPPS OR TASKSWITCHER)Hyunyoung Song2018-05-231-2/+6
| | | | | | Bug: 79423536 Change-Id: I23ff0d4d0aa3fec781e9b6c8792d2d7a738ca6c8
* Dumping the excoded view hierarchy instead of the default activity dumpSunny Goyal2018-05-161-0/+9
| | | | | | | > Encoded hierarchy is smaller is size and has a lot more information about the views Bug: 79861035 Change-Id: I84316b1b0031282b0579f3aaac22d8d8f00d8bcb
* Adding some activity state information in dumpSunny Goyal2018-05-141-2/+10
| | | | | Bug: 79216829 Change-Id: I3e1a5f5508f09b9ce2737c13d917fbab531c2572
* Revert "Revert "Update sysui flags on swipe, skip task backgrounds on opaque ↵Winson Chung2018-05-111-0/+7
| | | | | | | | | | apps"" This reverts commit f5d5b6f00fcf64dc7d4a0df5dad683ba8d8921f6. Reason for revert: Can be submitted once a build with ag/4040557 is available for flashing Change-Id: Id94440a1dc9b765bb9758af81b0567628befa283
* Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps"Winson Chung2018-05-111-7/+0
| | | | | | | | This reverts commit 5dd46d51eda6e26830c994e9a0581d57316beb51. Reason for revert: Temporary revert until ag/4040557 goes in Change-Id: Iab2c747a99e1fb1cc5a91787dbf185df77f791b4
* Update sysui flags on swipe, skip task backgrounds on opaque appsWinson Chung2018-05-101-0/+7
| | | | | | | | Bug: 79228291 Bug: 77984778 Bug: 78659249 Bug: 73714156 Change-Id: I3bb9ce5b4d5d16bc229a1caba99891cb87775136
* Using surface rotation instead of insets to determine seascape configurationSunny Goyal2018-05-071-13/+0
| | | | | | | | Insets may not correctly indicate seascape configuration in multi-window or when the presence of device-cutouts Bug: 79376298 Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
* Fix bug where launcher closing animation isn't run.Jon Miranda2018-05-071-9/+0
| | | | | | | | In some cases, we prematurely clear the force invisible flag before composing the launcher animation, causing us to skip the animation. Bug: 77205145 Change-Id: I4224741649a4fef34e255abac7b66bcf919c042f
* Reset the force-invisible flag after the animation into launcher completes.Winson Chung2018-04-201-0/+9
| | | | | | | | | | - In the case where an app auto-enters into PiP, we don't run the predefined remote animation, which means that the force-invisible flag is never reset. With ag/3876550, we can rely on enter animation complete to be called after the transition, and we can reset the flag here as well. Bug: 77730018 Change-Id: Ifa4cbe518047eed7ab327721ff6d17db1a2b8cd5
* Reset PIP position when canceling swipe upTracy Zhou2018-04-171-1/+1
| | | | | | | | | | | | | | | onStop() is a confirmed signal of user leaving Launcher. In most use cases, we use onUserLeaveHint() to move PIP. However, in some cases, onUserLeaveHint() does not get triggered. It's still a good signal for those use cases because it happens sooner than onStop() and is not interrupted by focus change. In order to address cases that onUserLeaveHint() is not triggered (e.g. cancelling swipe up), onStop() pushes PIP to the right position. In other cases, we simply set it twice, which does not hurt. Change-Id: Ia206590d10d673b16196bbab927a24aaae3ba46b Fixes: 77648293 Test: manual test
* Waiting until onResume before creating the wallpaper-open animation.Sunny Goyal2018-04-161-8/+36
| | | | | Bug: 77853906 Change-Id: I5126855492da59c9dbfef0ce2a97f94662a6522b
* Several app transition fixes:Sunny Goyal2018-04-111-6/+27
| | | | | | | | | | | > If launcher already started, creating the state transition only after threshold crossed, so that previous animations are not cancelled > Not posting animaiton callbacks at the front of the queue, as that sometimes causes it get executed before onNewIntent > Farking the activity as forceInvisible while launching an opaque app, so that quickly pressing home/back runs the reverse animation > Not running state animations when force-invisible is true Bug: 77830325 Bug: 77898806 Change-Id: I50a7e915ca35fd6aeb284c8f321ecca74396fe98
* Reload the task list when multiwindow mode changesWinson Chung2018-04-111-0/+23
| | | | | Bug: 73097187 Change-Id: I05d8635f78451600cbb8a9c03515e60d3c32e1ae
* Fix animations homeWinson Chung2018-04-041-0/+20
| | | | | | | | | | | | - To prevent surface thrashing, we no longer hide the home activity before starting the transition home. This prevents the launcher from being added to the remote animation target list, which means that we default to skipping the launcher animation. As a workaround, we special case the flow and force the animation to run when starting the recents animation. Bug: 74405472 Test: Go home from an app, ensure there is an animation. Change-Id: Ifd2b39444fdeab323ee79a368b580a6264c3e5b9
* Move default pip position to right above the shelf (Pt. Launcher)Tracy Zhou2018-03-281-0/+17
| | | | | | | | | | | | | | | | | | | | SysUI change: ag/3721784, ag/3793664 - Track LauncherState and launcher activity state through callbacks. - Devise logic to send shelf visibility and height signal to SysUI based on LauncherState and Launcher activity state. Bug: 73961893 Test: - By default, pip shows up right above the shelf. - Transitioning to all apps moves the pip down as the shelf becomes invisible. - Going to any specific app moves pip down. Hitting home moves pip right above the shelf again. - Dismissing IME should push PIP down but above the shelf on home screen, bottom if not. Change-Id: I1ab6ceb8007a5a7b5d932a456efa0a07f586ea4c
* Fix black flash when splitting taskWinson Chung2018-03-151-2/+5
| | | | | | | | | | - Draw the thumbnail view and align with the thumbnail bounds instead of the whole task bounds with the icon - Defer animating the task list until after the animation completes Bug: 73118672 Test: Enter split screen Change-Id: Ie10c079cb22ae82f3c5974296462abae335ef5a8
* Adding fallback recents activitySunny Goyal2018-03-131-0/+15
| | | | | | | | > Refactoring RecentsView to a common base class > Moving some dependency form Launcher to BaseActivity > Using the Recents view in RecentsActivity Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
* Removing launcher dependency when logging quickstep interactionSunny Goyal2018-02-221-2/+1
| | | | | | as Launcher may not be ready when the touch gesture completes. Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
* Handling configuration changesSunny Goyal2018-02-011-0/+16
| | | | | | | | | > Adding a listener for device profile changes > Updating various controllers instead of recreating them > Clearing all-apps icon Bug: 71709920 Change-Id: Ief7db199eb7494ebd8fb433198f333cd2e8e661d
* Running state animations if launcher is visibleSunny Goyal2018-01-111-0/+18
| | | | Change-Id: Ibc522edec4f86375ea75ac645b748fec43fceb31
* Adding A feature flag to disable widgets and a corresponding buildSunny Goyal2017-07-211-0/+6
| | | | | | | target Launcher3Go without widgets support Bug: 62353159 Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
* Fixing various system UI flags not getting updated properly on theme changes.Sunny Goyal2017-06-201-0/+9
| | | | | | | | | SystemUiController manages various system UI flags in priorty order and merges all the states before applying the syste flags. Fixing WallpaperColors when it was not handing wallpaper change properly in some cases Change-Id: I915442818e7888c97c81f63c8ea9f3c13053eb2c
* Log whether an event happened during landscape mode or notHyunyoung Song2017-05-161-1/+1
| | | | | | | | | | | | | | b/38211234 <sample log> action:TAP Source child:APP_ICON, packageHash=-1046965711, componentHash=-371608779, intentHash=208792422, grid(4,4), span(1,1), pageIdx=0 parent:WORKSPACE id=0 Elapsed container 3071 ms session 3071 ms action 0 ms isInLandscapeMode true isInMultiWindowMode false </sample log> Change-Id: I44dfe4e7ee2a41c56a50cc2b507bbbeedc458018
* Add isInMultiWindowMode bool to all logs.Jon Miranda2017-03-221-1/+6
| | | | | | | | | | | | Example output: D/UserEvent: action:LONGPRESS Source child:WORKSPACE id=0 Elapsed container 1850 ms session 1850 ms action 0 ms isInMultiWindowMode true Bug: 34250955 Change-Id: If21484e8bbb0f4f311c2eb6e94b7dcea6d2431af
* Moving Event dispatcher definition from LAuncher to BaseActivity so thatSunny Goyal2017-02-271-0/+10
| | | | | | | it can be used in other activities as well. Bug: 34766840 Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-181-0/+42
on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc