Merge "Fix crash when broadcasting preferred activity changed before boot completed." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ccc7759b1c
@@ -20062,6 +20062,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
|
||||
final Intent intent = new Intent(Intent.ACTION_PREFERRED_ACTIVITY_CHANGED);
|
||||
intent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
|
||||
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
|
||||
try {
|
||||
am.broadcastIntent(null, intent, null, null,
|
||||
0, null, null, null, android.app.AppOpsManager.OP_NONE,
|
||||
|
||||
Reference in New Issue
Block a user