Merge "Handle Context#unbindService exception" into rvc-dev am: 06e29c96fc am: f6a9b17276

Change-Id: Idfc8a705b13dce4a5faba2c7a7d8c673aed03dad
This commit is contained in:
Zimuzo Ezeozue
2020-04-30 14:50:41 +00:00
committed by Automerger Merge Worker

View File

@@ -242,7 +242,13 @@ public final class StorageUserConnection {
}
if (oldConnection != null) {
mContext.unbindService(oldConnection);
try {
mContext.unbindService(oldConnection);
} catch (Exception e) {
// Handle IllegalArgumentException that may be thrown if the user is already
// stopped when we try to unbind
Slog.w(TAG, "Failed to unbind service", e);
}
}
}