fix build for now
This commit is contained in:
parent
8a37d68ee6
commit
bdbfd8cdc6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
//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
|
//TODO: getOrientation() needs to be used for API<8, deprecated after that
|
||||||
int screenOrientation = ((WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation();
|
//int screenOrientation = ((WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation();
|
||||||
|
int screenOrientation = 0;
|
||||||
switch (screenOrientation)
|
switch (screenOrientation)
|
||||||
{
|
{
|
||||||
case ORIENTATION_0: // Portrait
|
case ORIENTATION_0: // Portrait
|
||||||
|
|
Loading…
Reference in a new issue