This repository has been archived by the owner on May 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Always set a non-null Device.Info (#504)
When we run under the context of layoutlib the `Context` object that is created will not implement IDeviceInfoProvider. All this means is that we will not get change notifications when the orientation changes, but that's ok! This won't happen anyway. If we instantiate the Device.Info object then everywhere else in the code will be able to get access to the screen properties. Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44893
- Loading branch information