Skip to content

Misc updates rollup#151

Merged
jeromelaban merged 41 commits intomasterfrom
dev/jela/rollup
Aug 28, 2018
Merged

Misc updates rollup#151
jeromelaban merged 41 commits intomasterfrom
dev/jela/rollup

Conversation

@jeromelaban
Copy link
Copy Markdown
Member

  • Fixed VisualState not updated when TextBox is focused
  • Improve ListView and Selector memory footprint
  • Adjust GenericStyles application sequence for Android
  • Add diagnostics methods for BinderReferenceHolder
  • Include android status bar height in Window.Bounds
  • Fixed Grid items size when MinHeight and MinHeight are used
  • Fixed android race condition during visual tree cleanup
  • Add support for underline in HyperLinkButton
  • Fixed ScrollContentPresenter margin issue
  • Adjust MessageDialog behavior for android
  • ContentControl Data Context is now properly unset
  • Add EmailNameOrAddress InputScope for TextBox
  • Fixed duplicated resw entry support
  • Fixed ComboBox popup touch issue
  • Add support for TextBlock.TextDecorations
  • TextBlock base class from UILabel to FrameworkElement

Comment thread src/Uno.UWP/Uno.csproj Outdated

<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
<Import Project="..\Uno.CrossTargetting.props" />
<ItemGroup>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like rebase-added files messed up with VS...

juliecantin and others added 28 commits August 28, 2018 13:53
Replace hard references to parents from adapter and layouting with ManagedWeakReference, to reduce the chance of leaky reference cycles.
Modify subscription to ICollectionView.CurrentChanged to work around a memory leak when the collection implements the event using EventRegistrationTokenTable.
 - Unset DependencyObject.Parent of ListViewItems when removed from native list
 - Unset DataContext of ListViewItems when list is refreshed (eg ItemsSource changes). This frees up their templates for reuse.
 - Refactor ClearContainerForItemOverride() (when this is implemented properly, it shouldn't unbind containers)
 - Remove unused code
This partially mitigates a concurrency issue when debugging Xamarin.Android where the activity constructor is called from a background thread.
Get children of inactive views, get typed list of leaked views
Related Work Items: #126839
The dispatched call to remove views from the overridden Java finalize() causes sporadic crashes due to modifying already-finalized views. Remove for now until a better approach can be found.

This is a non-breaking change because the current implementation doesn't do anything, due to a bug where removing views in this way doesn't change the DependencyObjectStore.Parent of the removed view (hence view never gets released to the template pool as intended).
Allow Pages to be pooled in the same way that FrameworkTemplate instances are currently pooled. This can be a significant performance improvement in certain Frame navigation scenarios.

For now Pages are released to the pool conservatively (only on New navigation). It should be possible to optimize more aggressively by releasing pages when consumers modify the Back- and ForwardStacks programmatically.
Modify Scavenger() method in FrameworkTemplatePool and PagePool to dispatch idly again on each loop iteration, rather than continue on the normal UI SynchronizationContext.
This mirrors the schematic already available for Android.
Don't reset flag until the actual override is unset. This is already taken care of when ContentTemplateRoot is set.
Fix bug introduced by reordering call to SetNavigationBarHidden after CommandBar is rendered.
…d when there is a custom appbarbutton

Related Work Items: #128079, #128556
Refactor to remove unnecessary parameters, no functional changes.
Remove HasAttachedToWindow flag from mixins and have DependencyObjectGenerator correctly handle calling OnLoaded/OnUnloaded.
davidjohnoliver and others added 11 commits August 28, 2018 13:53
Ensure detached views in the view cache are removed completely when the list is unloaded. This prevents bugs where the view's attached window (View.mAttachInfo) can get out of sync, causing various undefined behaviours (invisible items, items redrawn every draw cycle resulting in crash, etc).
Prevent crash from detaching undetached view, introduced by removing cached views during unloading.

Add check in debug for private ViewHolder.isTmpDetached() value, to surface exceptions in the managed layer.
Ensure that BindingPath updates managed weakRef of child BindingItem if it disposes the old weakRef, even if the target hasn't changed.

This prevents a crash caused by the BindingItem retaining the disposed weakRef in certain situations where Phase binding is used on a chained binding and a list's ItemsSource is modified multiple times.
Fix touch position calculation to take window offset into account. Previously the algorithm was assuming that the root view was at (0,0). This fixes bug where some touches weren't registered properly on views inside a popup window (eg, ComboBox items).
@jeromelaban jeromelaban merged commit 34d4c87 into master Aug 28, 2018
@jeromelaban jeromelaban deleted the dev/jela/rollup branch August 28, 2018 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants