[android] - remove reflection lookup for MarkerViewAdapter intialisation

This commit is contained in:
tobrun
2018-06-26 11:00:59 +02:00
committed by Tobrun
parent 50ff53ae3b
commit 95fd7ee742
3 changed files with 5 additions and 7 deletions

View File

@@ -260,7 +260,7 @@ public class MarkerViewActivity extends AppCompatActivity {
private MapboxMap mapboxMap;
CountryAdapter(@NonNull Context context, @NonNull MapboxMap mapboxMap) {
super(context);
super(context, CountryMarkerView.class);
this.inflater = LayoutInflater.from(context);
this.mapboxMap = mapboxMap;
}
@@ -333,7 +333,7 @@ public class MarkerViewActivity extends AppCompatActivity {
private MapboxMap mapboxMap;
public TextAdapter(@NonNull Context context, @NonNull MapboxMap mapboxMap) {
super(context);
super(context, TextMarkerView.class);
this.inflater = LayoutInflater.from(context);
this.mapboxMap = mapboxMap;
}