diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index ad1e1fac35..0c023a92a2 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -138,7 +138,7 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca @Override public void onScrollChanged() { int scrollY = mainScroll.getScrollY(); - if (previousScroll == scrollY || mainScroll.getChildAt(0) == null){ + if (previousScroll == scrollY || mainScroll.getChildCount() == 0){ return; }