You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then you can access this reference everywhere in your app to know if your code is running on a tablet or smartphone.
Do never ever call Device.get().isTablet each time you need it. Just create an reference to it in main() after you changed your screen orientation or other ui related pre settings. This library sometime changes the detected device type while running the app. Its only like 95% accurate.
This library returns
on a bunch of tablets. This error does not occur every time, but it does happen again and again.
It also rarely happens in debug mode but mostly in release mode.
Tested devices: iPad mini, iPad Air 2, Galaxy Tab S6, Galaxy Tab A2
The text was updated successfully, but these errors were encountered: