Merge "Report normalized package name as default key" into oc-dev am: 0560127e9d
am: bf3ad99a38
Change-Id: Id4d90c665262151bc4413a8143cd131c1d069543
This commit is contained in:
@@ -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