Merge "User correct category for finding headless sync adapters" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0855357c4f
@@ -696,7 +696,7 @@ final class DefaultPermissionGrantPolicy {
|
||||
List<PackageParser.Package> syncAdapterPackages = new ArrayList<>();
|
||||
|
||||
Intent homeIntent = new Intent(Intent.ACTION_MAIN);
|
||||
homeIntent.addCategory(Intent.CATEGORY_HOME);
|
||||
homeIntent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||
|
||||
for (String syncAdapterPackageName : syncAdapterPackageNames) {
|
||||
homeIntent.setPackage(syncAdapterPackageName);
|
||||
|
||||
Reference in New Issue
Block a user