Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set device_type accordingly to Mobile, TV, or Tablet #93

Merged
merged 8 commits into from
Feb 20, 2024

Conversation

marandaneto
Copy link
Member

@marandaneto marandaneto commented Feb 8, 2024

💡 Motivation and Context

chore: set device_type accordingly to Mobile, TV, or Tablet

💚 How did you test it?

running on emulators otherwise we'd have to mock the world.

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

@marandaneto marandaneto requested a review from a team February 8, 2024 13:48
@marandaneto marandaneto marked this pull request as ready for review February 8, 2024 13:48
// Devices in a sane range for phones are considered to be phones.
"Mobile"
} else if (diagonalSizeInches > 6.9 && diagonalSizeInches <= 18.0) {
// Devices larger than a phone and in a sane range for tablets are tablets.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queue some obnoxiously large Samsung phone breaking this rule and falling into tablet mode

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, today this is the state of the art of what's a phone and a tablet but it is a floating number and will keep being :(

@marandaneto marandaneto merged commit 7b8acb9 into main Feb 20, 2024
5 checks passed
@marandaneto marandaneto deleted the chore/device_type branch February 20, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants