summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Maryam Dehaini <mdehaini@google.com> 2024-06-26 09:17:27 -0700
committer Maryam Dehaini <mdehaini@google.com> 2024-07-08 19:34:29 -0700
commit15380dcfbfa1ccac27b5cb035183f1a190aec0a5 (patch)
tree1f99c18da43619146453bc7ea4f076d7d7ddc99a /libs/androidfw/StringPool.cpp
parent9edff93dcb292a1570dd56793fdaec806b91bbb6 (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions