This commit is contained in:
Victor Shcherb 2016-08-03 16:55:50 +02:00
parent efdf7e262c
commit 4ffe7650f0

View file

@ -284,11 +284,17 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
public void showProgressBar() { public void showProgressBar() {
getActionBarActivity().setSupportProgressBarIndeterminateVisibility(true); OsmandActionBarActivity activity = getActionBarActivity();
if(activity != null) {
activity.setSupportProgressBarIndeterminateVisibility(true);
}
} }
public void hideProgressBar() { public void hideProgressBar() {
getActionBarActivity().setSupportProgressBarIndeterminateVisibility(false); OsmandActionBarActivity activity = getActionBarActivity();
if(activity != null) {
activity.setSupportProgressBarIndeterminateVisibility(false);
}
} }
private void enterMapMarkersMode() { private void enterMapMarkersMode() {