Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
15e6c7d6fe
2 changed files with 0 additions and 2 deletions
|
@ -788,7 +788,6 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
float a = h != null ? h : 0;
|
||||
|
||||
//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 = 0;
|
||||
screenOrientation = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation();
|
||||
switch (screenOrientation)
|
||||
|
|
|
@ -187,7 +187,6 @@ public class DashFavoritesFragment extends DashBaseFragment {
|
|||
float a = h != null ? h : 0;
|
||||
|
||||
//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 = 0;
|
||||
screenOrientation = ((WindowManager) getActivity().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation();
|
||||
switch (screenOrientation)
|
||||
|
|
Loading…
Reference in a new issue