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

Change-Id: If26cfa6252be02579476b9426c4c100c6066c473
This commit is contained in:
Zimuzo Ezeozue
2020-04-30 14:36:58 +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);
}
}
}