Merge "Fix user starts by using startProfile" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e78b3d3f7e
@@ -104,7 +104,7 @@ public class CloneBackend {
|
|||||||
new HashSet<>());
|
new HashSet<>());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (ManageApplications.DEBUG) {
|
if (ManageApplications.DEBUG) {
|
||||||
Log.e("ankita", "Error occurred creating clone user" + e.getMessage());
|
Log.e(TAG, "Error occurred creating clone user" + e.getMessage());
|
||||||
}
|
}
|
||||||
return ERROR_CREATING_CLONE_USER;
|
return ERROR_CREATING_CLONE_USER;
|
||||||
}
|
}
|
||||||
@@ -125,7 +125,7 @@ public class CloneBackend {
|
|||||||
if (newlyCreated) {
|
if (newlyCreated) {
|
||||||
IActivityManager am = ActivityManagerNative.getDefault();
|
IActivityManager am = ActivityManagerNative.getDefault();
|
||||||
try {
|
try {
|
||||||
am.startUserInBackground(mCloneUserId);
|
am.startProfile(mCloneUserId);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
if (ManageApplications.DEBUG) {
|
if (ManageApplications.DEBUG) {
|
||||||
Log.e(TAG, "Error starting clone user " + e.getMessage());
|
Log.e(TAG, "Error starting clone user " + e.getMessage());
|
||||||
|
Reference in New Issue
Block a user