Capture links in window decoration
This CL does the following: 1. Adds a capturedLink and capturedLinkTimestamp field into TaskInfo. 2. On TaskInfo#fillTaskInfo, iterates activities top to bottom and finds the first activity (if any exist) which was opened using a link. 3. If TaskInfo#capturedLink is not null and has not been previously saved, saves the link and posts a runnable to clear the link after a set amount of time. 4. Creates an "Open in browser" button in the handle menu if the capturedLink field in TaskInfo is not null. 4. When the window decoration is created, finds and saves the component name of the default browser. 5. When a click event is received, opens the saved link in the default browser. Bug: 349695493 Test: Open slides from gmail app and use button to switch to browser Flag: com.android.window.flags.enable_desktop_windowing_app_to_web Change-Id: I8e638cde8c1fff4c5f2b75da2d9b31541dbe2489
Loading
Please register or sign in to comment