Changed latch to only wait for titleCats

This commit is contained in:
misaochan 2016-10-21 17:22:28 +13:00
parent 2ea7e6e5fe
commit 82b5904a68

View file

@ -80,7 +80,7 @@ public class CategorizationFragment extends Fragment {
MethodAUpdater methodAUpdaterSub; MethodAUpdater methodAUpdaterSub;
private final ArrayList<String> titleCatItems = new ArrayList<String>(); private final ArrayList<String> titleCatItems = new ArrayList<String>();
final CountDownLatch mergeLatch = new CountDownLatch(2); final CountDownLatch mergeLatch = new CountDownLatch(1);
private ContentProviderClient client; private ContentProviderClient client;
@ -171,8 +171,6 @@ public class CategorizationFragment extends Fragment {
catch (RemoteException e) { catch (RemoteException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
mergeLatch.countDown();
return items; return items;
} }