[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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user