src/main/java/de/blau/android/layer/Util.java
/**
     * Add a layer on top
     * 
     * @param context an Android Context
     * @param type the LayerType
     * @param contentId an id identifying the contents or null
     */
Add a layer on top

@param context an Android Context
@param type the LayerType
@param contentId an id identifying the contents or null
Add a layer on top @param context an Android Context @param type the LayerType @param contentId an id identifying the contents or null
public static void addLayer(@NonNull final Context context, @NonNull final LayerType type, @Nullable final String contentId) {
        try (AdvancedPrefDatabase db = new AdvancedPrefDatabase(context)) {
            db.insertLayer(db.layerCount(), type, true, contentId);
        }
    }
public static void addLayer ( @ NonNull final Context context , @ NonNull final LayerType type , @ Nullable final String contentId ) { try ( AdvancedPrefDatabase db = new AdvancedPrefDatabase ( context ) ) { db . insertLayer ( db . layerCount ( ) , type , true , contentId ) ; } }
Add a layer on top
Add a layer on top