Skip to content

Commit

Permalink
cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
doneill committed Nov 3, 2015
1 parent a4c8063 commit 7512faa
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,12 @@ public void onCreate(Bundle savedInstanceState) {

// Create a new AttributeListAdapter when the feature layer is initialized
if (featureLayer.isInitialized()) {

listAdapter = new AttributeListAdapter(this, featureLayer.getFields(), featureLayer.getTypes(),
featureLayer.getTypeIdField());

} else {

featureLayer.setOnStatusChangedListener(new OnStatusChangedListener() {

private static final long serialVersionUID = 1L;

public void onStatusChanged(Object source, STATUS status) {

if (status == STATUS.INITIALIZED) {
listAdapter = new AttributeListAdapter(AttributeEditorActivity.this, featureLayer.getFields(), featureLayer
.getTypes(), featureLayer.getTypeIdField());
Expand All @@ -124,11 +118,9 @@ public void onStatusChanged(Object source, STATUS status) {

// Set tap listener for MapView
mapView.setOnSingleTapListener(new OnSingleTapListener() {

private static final long serialVersionUID = 1L;

public void onSingleTap(float x, float y) {

// convert event into screen click
pointClicked = mapView.toMapPoint(x, y);

Expand All @@ -144,15 +136,11 @@ public void onSingleTap(float x, float y) {

// handle any errors
public void onError(Throwable e) {

Log.d(TAG, "Select Features Error" + e.getLocalizedMessage());

}

public void onCallback(FeatureSet queryResults) {

if (queryResults.getGraphics().length > 0) {

Log.d(
TAG,
"Feature found id="
Expand Down

0 comments on commit 7512faa

Please sign in to comment.