Fixed some expetions for android 2.3.3

This commit is contained in:
Denis 2014-07-31 17:55:23 +03:00
parent 4400328c33
commit aebd125b9a
2 changed files with 5 additions and 1 deletions

View file

@ -39,6 +39,7 @@ public class SettingsMonitoringActivity extends SettingsBaseActivity {
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
requestWindowFeature(Window.FEATURE_PROGRESS);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setSupportProgressBarIndeterminateVisibility(false); setSupportProgressBarIndeterminateVisibility(false);
getSupportActionBar().setTitle(R.string.monitoring_settings); getSupportActionBar().setTitle(R.string.monitoring_settings);

View file

@ -109,7 +109,10 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
@Override @Override
protected List<OpenStreetNote> calculateResult(RotatedTileBox tileBox) { protected List<OpenStreetNote> calculateResult(RotatedTileBox tileBox) {
QuadRect bounds = tileBox.getLatLonBounds(); QuadRect bounds = tileBox.getLatLonBounds();
return loadingBugs(bounds.top, bounds.left, bounds.bottom, bounds.right); if (bounds != null){
return loadingBugs(bounds.top, bounds.left, bounds.bottom, bounds.right);
}
return new ArrayList<OpenStreetNote>();
} }
}; };
} }