[Settings] Support master switch of inline toggle of Settings Injection v2

Allow developers to inject MasterSwitchPreference, a switch
preference with two tap targets, to Settings page.

Developers should declare keyhint and switch_uri for the activity
in AndroidManifest,and then implement a SwitchesProvider.

Bug: 132808482
Test: robotest
Change-Id: I64cdf18268be0cfcd38aab2c059144536dd79b32
This commit is contained in:
Jason Chiu
2019-10-24 17:30:34 +08:00
parent bac5987c8e
commit 10e675d6b5
5 changed files with 34 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ public class ShadowTileUtils {
}
@Implementation
public static Bundle putBooleanToUri(Context context, Uri uri,
public static Bundle putBooleanToUriAndGetResult(Context context, Uri uri,
Map<String, IContentProvider> providerMap, String key, boolean value) {
sChecked = value;
return sResult;