Commit cf55343b authored by Edward Wang's avatar Edward Wang
Browse files

MediaLibrary: fix unsynchronized lazy initialization

parent a307eb5a
......@@ -101,7 +101,7 @@ public class MediaLibrary {
return false;
}
public static MediaLibrary getInstance() {
public synchronized static MediaLibrary getInstance() {
if (mInstance == null)
mInstance = new MediaLibrary();
return mInstance;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment