diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java index 0419b05673..47a64feecc 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java @@ -185,7 +185,8 @@ public class DashFavoritesFragment extends DashBaseFragment { //Hardy: getRotation() is the correction if device's screen orientation != the default display's standard orientation //TODO: getOrientation() needs to be used for API<8, deprecated after that - int screenOrientation = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation(); + //int screenOrientation = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation(); + int screenRotation switch (screenOrientation) { case ORIENTATION_0: // Portrait