summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Eric Rahm <erahm@google.com> 2023-09-15 08:42:52 -0700
committer Eric Rahm <erahm@google.com> 2023-09-15 08:56:00 -0700
commit336ac019b43411e1c9631bc57c83cb38005d5cdc (patch)
treeb76845a6dedf247e081e79e1d8067637870f71e9 /libs/androidfw/FileStream.cpp
parent09af2b3b5e189bf777a4ec791f1f759f36406c4c (diff)
Gracefully handle unbind errors when detaching
When detaching from a previous wallpaper we unbind our connection from the underlying service. This can generate an exception if the service is no longer available and lead to the wallpaper state being left in a half-cleared state as well as causing the detach operation to fail. This CL adds a catch to handle the exception, in this case it doesn't matter if the the service has gone away since we're detaching from it anyway. Bug: 296508731 Test: atest WallpaperManagerTest Change-Id: I19a3fedecafca10744cf21f2e6bd40c9f8f6350a
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions