Skip to content

Commit

Permalink
Remove clean result feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chao-zhou committed May 7, 2012
1 parent 58ce7d4 commit 4d981e1
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/com/utopia/lijiang/LijiangMapActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ public static LijiangMapActivity getInstance(){
InputMethodManager imm = null;
ProgressDialog progressDialog = null;

private boolean openedPoiListActivityMark = false;
private boolean openProcessDialogMark = false;

private boolean shouldSaveMapStateAndReset(){
boolean rslt = openedPoiListActivityMark || openProcessDialogMark;
openedPoiListActivityMark = false;
openProcessDialogMark =false;

return rslt;
}

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
Expand All @@ -68,13 +57,7 @@ protected void onCreate(Bundle savedInstanceState) {

@Override
protected void onResume(){
if(shouldSaveMapStateAndReset()){
super.onResume(false);
}
else{ //clear map
super.onResume(true);
clearSearchResult();
}
super.onResume(false);
}

/*
Expand Down Expand Up @@ -106,7 +89,6 @@ public void searchPosition(View targer){
String poiName = getPostionName();
if(poiName.length()>0){
progressDialog.show();
openProcessDialogMark = true;
mSearch.poiSearchInCity(CURRENT_CITY,poiName);
}
}
Expand Down Expand Up @@ -171,7 +153,6 @@ public void showLocationList(View target){
return;
}

openedPoiListActivityMark = true;
Intent intent = new Intent(this, PoiListActivity.class);
this.startActivityForResult(intent, 0);

Expand Down

0 comments on commit 4d981e1

Please sign in to comment.