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

Skip to content
Commit d3580437 authored by Raj Yengisetty's avatar Raj Yengisetty Committed by Rajesh Yengisetty
Browse files

Photo Gallery widget: fix NPE in getViewAt

Repro:
 - Add Photo Gallery widget to a home screen
 - Select "Shuffle all images"
 - Immediately drag widget to "Remove"
 - Observe NPE

The remote view is destroyed and the reference to mSource is null.
By making onDestroy and getViewAt synchronized methods, we ensure that
destroy cannot be executed to null out mSource while getViewAt is
being called.

Change-Id: I470f9f6227f437039cf111071c905268db1bd62e
(cherry picked from commit 9abe7095)
parent f82af5f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment