Fixed some expetions for android 2.3.3
This commit is contained in:
parent
4400328c33
commit
aebd125b9a
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -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>();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue