Skip to content

Commit 8e2e572

Browse files
author
Adam Cohen
committed
Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)
Change-Id: I4646095f4cde9514425be8ab2dbf805d9788aa5c
1 parent 041a0ba commit 8e2e572

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/android/app/WallpaperManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,9 @@ public void run() {
635635
//Log.v(TAG, "...app returning after sending offsets!");
636636
} catch (RemoteException e) {
637637
// Ignore.
638+
} catch (IllegalArgumentException e) {
639+
// Since this is being posted, it's possible that this windowToken is no longer
640+
// valid, for example, if setWallpaperOffsets is called just before rotation.
638641
}
639642
}
640643
});

0 commit comments

Comments
 (0)