Merge "Run performInitialGrantsIfNecessaryAsync() on main thread." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb90b66cb5
@@ -39,7 +39,6 @@ import android.content.pm.PackageManager.NameNotFoundException;
|
|||||||
import android.content.pm.PackageManagerInternal;
|
import android.content.pm.PackageManagerInternal;
|
||||||
import android.content.pm.Signature;
|
import android.content.pm.Signature;
|
||||||
import android.database.CursorWindow;
|
import android.database.CursorWindow;
|
||||||
import android.os.AsyncTask;
|
|
||||||
import android.os.Binder;
|
import android.os.Binder;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
@@ -201,8 +200,7 @@ public class RoleManagerService extends SystemService implements RoleUserState.C
|
|||||||
// Package is being upgraded - we're about to get ACTION_PACKAGE_ADDED
|
// Package is being upgraded - we're about to get ACTION_PACKAGE_ADDED
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AsyncTask.THREAD_POOL_EXECUTOR.execute(
|
performInitialGrantsIfNecessaryAsync(userId);
|
||||||
() -> performInitialGrantsIfNecessaryAsync(userId));
|
|
||||||
}
|
}
|
||||||
}, UserHandle.ALL, intentFilter, null, null);
|
}, UserHandle.ALL, intentFilter, null, null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user