Make preferred activities encryption aware.

Not all built-in apps are encryption aware, so match them all when
setting up preferred activities.

Bug: 27429841
Change-Id: I0fd2195714fac95d031813bab73125a5c7b6c81a
This commit is contained in:
Jeff Sharkey
2016-03-01 15:15:55 -07:00
parent 9ad8613bbb
commit 258be56dcd

View File

@@ -3049,7 +3049,7 @@ final class Settings {
tmpPa.dump(new LogPrinter(Log.DEBUG, TAG), " ");
}
Intent intent = new Intent();
int flags = 0;
int flags = PackageManager.MATCH_ENCRYPTION_AWARE_AND_UNAWARE;
intent.setAction(tmpPa.getAction(0));
for (int i=0; i<tmpPa.countCategories(); i++) {
String cat = tmpPa.getCategory(i);