Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c48cfa62 authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue Committed by Automerger Merge Worker
Browse files

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

Change-Id: Idfc8a705b13dce4a5faba2c7a7d8c673aed03dad
parents 120c1b1a f6a9b172
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -242,7 +242,13 @@ public final class StorageUserConnection {
            }

            if (oldConnection != null) {
                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);
                }
            }
        }