Skip to content

Commit

Permalink
DemCacheActivity searchCacheEntry prefer map with most local coverage…
Browse files Browse the repository at this point in the history
… rather than closest center
  • Loading branch information
mkrupczak3 committed May 3, 2024
1 parent 18c6cb3 commit 1436380
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions app/src/main/java/com/openathena/DemCacheActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,14 @@ public boolean onOptionsItemSelected(MenuItem item)
Intent intent;

// Handle item selection
switch (item.getItemId()) {
case R.id.action_add_dem:
// Handle settings action
Log.d(TAG,"DemCacheActivity: going to add/create a new DEM");
intent = new Intent(getApplicationContext(),NewElevationMapActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
return true;
default:
return super.onOptionsItemSelected(item);
if (item.getItemId() == R.id.action_add_dem) {// Handle settings action
Log.d(TAG, "DemCacheActivity: going to add/create a new DEM");
intent = new Intent(getApplicationContext(), NewElevationMapActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(intent);
return true;
}
return super.onOptionsItemSelected(item);
}

@Override
Expand Down

0 comments on commit 1436380

Please sign in to comment.