summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2018-11-07 17:17:26 +0100
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2018-11-20 12:22:16 +0100
commit9ac444a08d9701dc7b0da41859842a77d7be8e00 (patch)
tree08ab99d6caa7a24a9106382eedcc5812bf2c1811 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs
parent1d73bda00d1e4c18ef32eac5053afa4cc9bc4b0a (diff)
downloadqtlocation-mapboxgl-9ac444a08d9701dc7b0da41859842a77d7be8e00.tar.gz
[android] removing plain text getter for "text-field"
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs36
1 files changed, 0 insertions, 36 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs
index 60bbe941a6..e62c82e3b6 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/layer.java.ejs
@@ -182,44 +182,8 @@ public class <%- camelize(type) %>Layer extends Layer {
@SuppressWarnings("unchecked")
public PropertyValue<<%- propertyType(property) %>> get<%- camelize(property.name) %>() {
checkThread();
-<% if (property.name === 'text-field' && property.type === 'formatted') { -%>
-
- PropertyValue propertyValue = new PropertyValue<>("text-field", nativeGetTextField());
- if (propertyValue.isExpression()) {
- return (PropertyValue<String>) propertyValue;
- } else {
- String text = null;
-
- Formatted formatted = (Formatted) nativeGetTextField();
- if (formatted != null) {
- StringBuilder builder = new StringBuilder();
- for (FormattedSection section : formatted.getFormattedSections()) {
- builder.append(section.getText());
- }
- text = builder.toString();
- }
-
- return (PropertyValue<String>) new PropertyValue("text-field", text);
- }
-<% } else { -%>
return (PropertyValue<<%- propertyType(property) %>>) new PropertyValue("<%- property.name %>", nativeGet<%- camelize(property.name) %>());
-<% } -%>
}
-<% if (property.name === 'text-field' && property.type === 'formatted') { -%>
-
- /**
- * Get the <%- camelize(property.name) %> property as {@link Formatted} object
- *
- * @return property wrapper value around <%- propertyType(property) %>
- * @see Expression#format(Expression.FormatEntry...)
- */
- @NonNull
- @SuppressWarnings("unchecked")
- public PropertyValue<Formatted> getFormatted<%- camelize(property.name) %>() {
- checkThread();
- return (PropertyValue<Formatted>) new PropertyValue("<%- property.name %>", nativeGet<%- camelize(property.name) %>());
- }
-<% } -%>
<% if (property.type == 'color') { -%>
/**