Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into issue904-SimpleMa…
Browse files Browse the repository at this point in the history
…p-update-callout-background

sync with esri/master
  • Loading branch information
mani8177 committed Jun 25, 2015
2 parents e958c54 + 3efdb64 commit 1358ce3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public class MainActivity extends Activity {
private SearchView mSearchView;
private MenuItem searchMenuItem;
private MatrixCursor mSuggestionCursor;
private SimpleCursorAdapter mSuggestionAdapter;

private static ProgressDialog mProgressDialog;

Expand Down Expand Up @@ -175,7 +174,7 @@ private void applySuggestionCursor() {
String[] cols = new String[]{COLUMN_NAME_ADDRESS};
int[] to = new int[]{R.id.suggestion_item_address};

mSuggestionAdapter = new SimpleCursorAdapter(mMapView.getContext(), R.layout.suggestion_item, mSuggestionCursor, cols, to, 0);
SimpleCursorAdapter mSuggestionAdapter = new SimpleCursorAdapter(mMapView.getContext(), R.layout.suggestion_item, mSuggestionCursor, cols, to, 0);
mSearchView.setSuggestionsAdapter(mSuggestionAdapter);
mSuggestionAdapter.notifyDataSetChanged();
}
Expand Down Expand Up @@ -241,7 +240,7 @@ public boolean onSuggestionClick(int position) {
// Find the address
private class FindPlaceTask extends AsyncTask<String, Void, List<LocatorGeocodeResult>> {
private static final String SUGGESTION_ADDRESS_DELIMNATOR = ", ";
private Locator mLocator;
private final Locator mLocator;

public FindPlaceTask(Locator locator) {
mLocator = locator;
Expand Down Expand Up @@ -311,7 +310,7 @@ protected void onPostExecute(List<LocatorGeocodeResult> results) {

// Obtain a list of search suggestions.
private class SuggestPlaceTask extends AsyncTask<String, Void, List<LocatorSuggestionResult>> {
private Locator mLocator;
private final Locator mLocator;

public SuggestPlaceTask(Locator locator) {
mLocator = locator;
Expand Down

0 comments on commit 1358ce3

Please sign in to comment.