added auto selection tour after downloading it

This commit is contained in:
unknown 2014-06-07 10:48:08 +03:00
parent 1599db1f57
commit 3a6b4675bf

View file

@ -120,9 +120,14 @@ public class TourViewActivity extends SherlockFragmentActivity {
customization.onIndexingFiles(IProgress.EMPTY_PROGRESS,new LinkedHashMap<String, String>()); customization.onIndexingFiles(IProgress.EMPTY_PROGRESS,new LinkedHashMap<String, String>());
} }
if (!customization.getTourInformations().isEmpty() && customization.getSelectedTour() == null){ if (!customization.getTourInformations().isEmpty()){
if (customization.getSelectedTour() == null){
setTourSelectionContentView(); setTourSelectionContentView();
state = STATE_SELECT_TOUR; state = STATE_SELECT_TOUR;
} else {
startTourView();
}
} }
} }
@ -186,6 +191,7 @@ public class TourViewActivity extends SherlockFragmentActivity {
double scale = (double)(size.x-1)/imagewidth; double scale = (double)(size.x-1)/imagewidth;
bmp.setBounds(0,0, (int)(scale*bmp.getIntrinsicWidth()), (int)(scale*bmp.getIntrinsicHeight())); bmp.setBounds(0,0, (int)(scale*bmp.getIntrinsicWidth()), (int)(scale*bmp.getIntrinsicHeight()));
} }
return bmp; return bmp;
} }