Commit a4a3e5ed authored by Ludovic Fauvet's avatar Ludovic Fauvet

ThumbnailerManager: repair the barrier after an InterruptedException

The barrier needs to be reset after an InterruptedException, but sadly
we can't do that safely in the catch block. And because doing a reset on
a sane barrier is perfectly valid we'll do it at the beginning of each
parent 96094751
......@@ -120,6 +120,7 @@ public class ThumbnailerManager implements Runnable {
String prefix = mContext.getResources().getString(R.string.thumbnail);
while (!isStopping) {
// Get the id of the file browser item to create its thumbnail.
boolean interrupted = false;
......@@ -287,6 +287,10 @@ public class VideoListFragment extends SherlockListFragment implements ISortable
public void resetBarrier() {
private final BroadcastReceiver messageReceiverVideoListFragment = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
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