Commit Graph

6 Commits

Author SHA1 Message Date
Diego Vela
8e00e4868b Use androidx.window prebuilt.
Use androidx.window prebuilt for consistency.

Bug: 223114509
Test: manual
Change-Id: If178cd0f9202ec2d9da2fc75f2edb12c47e61dac
2022-04-14 09:56:19 +00:00
Edgar Wang
f531535036 Update ActivityEmbeddingUtils
- Provide base Intent in the two-pane Settings API.
  By returning an Intent with ComponentName, this makes it easier
  to embed the Intent into a SaferPendingIntent.
- Only support API for scv2 platform.
- Update BuildCompatUtils to support isAtLeastSV2 and isAtLeastT.

Bug: 227563999
Test: rebuild
Change-Id: Ib054c5c37e29d43662bcf9b0d86ecbee7c2b921d
2022-03-31 12:17:17 +00:00
Tsung-Mao Fang
cf700d9e1f Rename back button to navigate up button
Also some minor wording changes.

Test: Rebuild apk
Bug: 219000314
Change-Id: I9e54bd5f17dd1eb4e0f8803d2c29781a49c1124d
Merged-In: I9e54bd5f17dd1eb4e0f8803d2c29781a49c1124d
2022-03-07 08:47:17 +00:00
Tsung-Mao Fang
5641d01a98 Add two APIs in SettingsLibActivityEmbedding
Add two APIs

1. isActivityEmbedded() knows whether current activity is
embedded in the Settings app or not.
2. shouldHideBackButton knows whether current activity is
suggested to show back button or not.

Bug: 219000314
Test: Use the api in Settings app, and behavior is correct.
Change-Id: If1d29a8d9bdb896b179275e13de649872a5b94fe
2022-02-16 17:22:25 +08:00
Tsung-Mao Fang
58fb1caa4a Tweak the way to get the enabled component
Prior to this cl, we only can get the default value set in the AndroidManifest.xml.
It won't return the real enabled state after we modified the component state.

Test: Install apk and see if the search highlight works.
Bug: 204405245
Change-Id: I9bf0b178c591f2fbbbfc733bb2140a5725a07166
2021-12-09 18:23:59 +08:00
Mill Chen
5f804ca298 Create an utils for embedding activity feature
This is an utility class to access relevant embedding activity feature
supported by Settings.

Bug: 201722672
Test: manual test
1) Run the apk built with this utils, and check some features work well
on large screen

Change-Id: I9f2a1fff57632ca2841b61a862f107d7df735247
2021-11-04 01:15:20 +00:00