Merge "Avoid restart when inserting/ejecting adopted." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c8cc38c8c5
@@ -18838,9 +18838,14 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
sm.prepareUserStorage(volumeUuid, user.id, user.serialNumber, flags);
|
try {
|
||||||
synchronized (mInstallLock) {
|
sm.prepareUserStorage(volumeUuid, user.id, user.serialNumber, flags);
|
||||||
reconcileAppsDataLI(volumeUuid, user.id, flags);
|
synchronized (mInstallLock) {
|
||||||
|
reconcileAppsDataLI(volumeUuid, user.id, flags);
|
||||||
|
}
|
||||||
|
} catch (IllegalStateException e) {
|
||||||
|
// Device was probably ejected, and we'll process that event momentarily
|
||||||
|
Slog.w(TAG, "Failed to prepare storage: " + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user