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

Unverified Commit 33475780 authored by Likai Ding's avatar Likai Ding Committed by Michael Bestas
Browse files

Gallery: fix an ANR in slide show

waitDone() is called in SlideshowDataAdapter.pause(), which causes ANR
when database is busy. It's not necessary to sync there.

Change-Id: I4bd2594987f5fb16a50775e8cede9fed68c7bea0
CRs-Fixed: 997382
parent c2ef2562
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -189,7 +189,6 @@ public class SlideshowDataAdapter implements SlideshowPage.Model {
        }
        mSource.removeContentListener(mSourceListener);
        mReloadTask.cancel();
        mReloadTask.waitDone();
        mReloadTask = null;
    }