xamarin/Xamarin.Forms
Activity restarts with resolution change, page UI doesnt change
开放
#7,239 创建于 2019年8月22日
e/2 :clock2:hacktoberfest 🍻help wantedin-progressinactivep/Androidt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Activity restart doesn't update the page layout, it measure the layout according to last density not the one which has been selected from device setting's resolution change option.
Steps to Reproduce
- open xamarin forms app
- put app in background and go to settings
- search for device resolution option
- change it to other resolution and open the app from background
- check the page resolution
Class where the cache issue is : https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.Android/ContextExtensions.cs
property name : s_displayDensity
Expected Behavior
Actual Behavior
Basic Information
-
Version with issue:
-
Last known good version:
-
IDE:
-
Platform Target Frameworks:
- iOS: 10.0
- Android: 7.0
-
Affected Devices: Samsung devices, not sure about other devices