xamarin/Xamarin.Forms

Activity restarts with resolution change, page UI doesnt change

オープン

#7,239 opened on 2019/08/22

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/2 :clock2:hacktoberfest 🍻help wantedin-progressinactivep/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged 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

  1. open xamarin forms app
  2. put app in background and go to settings
  3. search for device resolution option
  4. change it to other resolution and open the app from background
  5. 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

コントリビューターガイド