Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Use Forms's GetHandler #228

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Tizen.Wearable.CircularUI.Forms.Renderer/ListViewCache.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using ElmSharp;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Tizen;
using Xamarin.Forms.Internals;
using XForms = Xamarin.Forms.Forms;

namespace Tizen.Wearable.CircularUI.Forms.Renderer
{
Expand Down Expand Up @@ -50,7 +50,7 @@ public static CellRenderer Get(Cell cell, bool IsGroupHeader)
}
else
{
renderer = Registrar.Registered.GetHandler<CellRenderer>(type);
renderer = XForms.GetHandler<CellRenderer>(type);
if (renderer == null)
{
throw new ArgumentNullException("Unsupported cell type");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
using Tizen.Multimedia;
using Tizen.Wearable.CircularUI.Forms.Renderer;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform.Tizen;
using XForms = Xamarin.Forms.Forms;

[assembly: Xamarin.Forms.Dependency(typeof(MediaPlayerImpl))]
namespace Tizen.Wearable.CircularUI.Forms.Renderer
Expand Down Expand Up @@ -270,7 +270,7 @@ async Task ApplySource()
{
return;
}
IMediaSourceHandler handler = Registrar.Registered.GetHandlerForObject<IMediaSourceHandler>(_source);
IMediaSourceHandler handler = XForms.GetHandlerForObject<IMediaSourceHandler>(_source);
await handler.SetSource(_player, _source);
}

Expand Down