added auto selection tour after downloading it
This commit is contained in:
parent
1599db1f57
commit
3a6b4675bf
1 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue