-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DeviceInfo.isTablet returning wrong value #198
Comments
If you look at the implementation of |
The problem is that there is not real way in Android to tell if we're on a Tablet, and detection have become harder & harder with new phones having extra high definitions.. Anyone have an idea on how to address this? 🤔 |
This looks promising: https://stackoverflow.com/a/24701063/472987 (for Android) |
Doesn't seem really reliable either, according to the comments right below :/ |
Just tried to alter this and so far it looks good. But needs alot more testing and I bet its not reliable. This is what Im doing right now.
Got this issue since newer phones in standard screensize works. but when the user alters there settings to higher dens it returns as istablet. |
@mikpalm could you open a PR for this so we can work/adjust the code there? Thank you mate! |
Done. #313 |
Thank you! PR #313 was opened to deal with this. |
The PR was merged in 0.17.2, thank you again @mikpalm & @Ingibjorg ! |
DeviceInfo.isTablet is true for both Nexus 7, Nexus 4 and Nexus 5.
check using Emulator.
The text was updated successfully, but these errors were encountered: