@CalledOnlyBy(AmidstThread.FRAGMENT_LOADER) public void processQueues(){
  Dimension dimension=dimensionSetting.get();
  updateLayerManager(dimension);
  processRecycleQueue();
  Fragment fragment;
  while ((fragment=loadingQueue.poll()) != null) {
    loadFragment(dimension,fragment);
    dimension=dimensionSetting.get();
    updateLayerManager(dimension);
    processRecycleQueue();
  }
  layerManager.clearInvalidatedLayers();
}

@ CalledOnlyBy ( AmidstThread . FRAGMENT_LOADER ) public void processQueues ( ) { Dimension dimension = dimensionSetting . get ( ) ; updateLayerManager ( dimension ) ; processRecycleQueue ( ) ; Fragment fragment ; while ( ( fragment = loadingQueue . poll ( ) ) != null ) { loadFragment ( dimension , fragment ) ; dimension = dimensionSetting . get ( ) ; updateLayerManager ( dimension ) ; processRecycleQueue ( ) ; } layerManager . clearInvalidatedLayers ( ) ; }
it is important that the dimension setting is the same while a fragment is loaded by different fragment loaders . this is why the dimension setting is read by the fragment loader thread .
