- 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
Also some minor wording changes.
Test: Rebuild apk
Bug: 219000314
Change-Id: I9e54bd5f17dd1eb4e0f8803d2c29781a49c1124d
Merged-In: I9e54bd5f17dd1eb4e0f8803d2c29781a49c1124d
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
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
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