Report normalized package name as default key
Test: make RunSettingsRoboTests -j90 bug:36978445 Change-Id: I593de89c4fa4e9c63a86b9844736e38dce30a258
This commit is contained in:
committed by
Svetoslav Ganov
parent
43083b4332
commit
7d3fb0481d
@@ -181,7 +181,14 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment {
|
||||
}
|
||||
|
||||
public static String getDefaultKey(Context context) {
|
||||
return Settings.Secure.getString(context.getContentResolver(), SETTING);
|
||||
String setting = Settings.Secure.getString(context.getContentResolver(), SETTING);
|
||||
if (setting != null) {
|
||||
ComponentName componentName = ComponentName.unflattenFromString(setting);
|
||||
if (componentName != null) {
|
||||
return componentName.flattenToString();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user