src/androidTest/java/de/blau/android/photos/PhotosTest.java
/**
     * Add the photo layer and wait until indexing is finished
     */
Add the photo layer and wait until indexing is finished
Add the photo layer and wait until indexing is finished
private void addLayerAndIndex() {
        prefs = new Preferences(context);
        App.getLogic().setPrefs(prefs);
        TestUtils.zoomToLevel(device, main, 20);
        if (map.getPhotoLayer() == null) {
            de.blau.android.layer.Util.addLayer(main, LayerType.PHOTO);
        }
        map.setPrefs(main, prefs);
        map.invalidate();
        TestUtils.findText(device, false, context.getString(R.string.toast_photo_indexing_finished), 10000);
        TestUtils.textGone(device, context.getString(R.string.toast_photo_indexing_finished), 10000);
    }
private void addLayerAndIndex ( ) { prefs = new Preferences ( context ) ; App . getLogic ( ) . setPrefs ( prefs ) ; TestUtils . zoomToLevel ( device , main , 20 ) ; if ( map . getPhotoLayer ( ) == null ) { de . blau . android . layer . Util . addLayer ( main , LayerType . PHOTO ) ; } map . setPrefs ( main , prefs ) ; map . invalidate ( ) ; TestUtils . findText ( device , false , context . getString ( R . string . toast_photo_indexing_finished ) , 10000 ) ; TestUtils . textGone ( device , context . getString ( R . string . toast_photo_indexing_finished ) , 10000 ) ; }
Add the photo layer and wait until indexing is finished
Add the photo layer and wait until indexing is finished