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

Commit f6a9b172 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

Change-Id: Ib09b984a8f32206ceaa87705cc9b5fc8b304b160
parents 9963bf60 06e29c96
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);
                }
            }
        }