We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a34125 + 2e288b8 commit 42e8df3Copy full SHA for 42e8df3
library/src/com/google/maps/android/clustering/ClusterManager.java
@@ -111,7 +111,11 @@ public void setRenderer(ClusterRenderer<T> view) {
111
}
112
113
public void setAlgorithm(Algorithm<T> algorithm) {
114
- setAlgorithm(new ScreenBasedAlgorithmAdapter<T>(algorithm));
+ if (algorithm instanceof ScreenBasedAlgorithm) {
115
+ setAlgorithm((ScreenBasedAlgorithm) algorithm);
116
+ } else {
117
+ setAlgorithm(new ScreenBasedAlgorithmAdapter<T>(algorithm));
118
+ }
119
120
121
public void setAlgorithm(ScreenBasedAlgorithm<T> algorithm) {
0 commit comments