diff options
author | jjie.choi <jjie.choi@samsung.com> | 2017-05-10 13:27:45 +0900 |
---|---|---|
committer | ChulSeung Kim <charles0.kim@samsung.com> | 2017-06-08 18:34:55 +0900 |
commit | 10610561db5a18b3ac71cc76af6f23dbf1c00126 (patch) | |
tree | 4a09e15f77789552e744bcdd4da0c2085390a13e /TVHome | |
parent | 02fec108c62293d6dfe4d31caaca737e6d8cfd08 (diff) | |
download | home-10610561db5a18b3ac71cc76af6f23dbf1c00126.tar.gz home-10610561db5a18b3ac71cc76af6f23dbf1c00126.tar.bz2 home-10610561db5a18b3ac71cc76af6f23dbf1c00126.zip |
Workflow changed. Iconify home before enter the app.
Change-Id: I063670b72cc0178096f72a47f10bcf93fbe433d4
Signed-off-by: jjie.choi <jjie.choi@samsung.com>
Diffstat (limited to 'TVHome')
-rwxr-xr-x | TVHome/TVHome/Views/MainPage.xaml.cs | 12 | ||||
-rwxr-xr-x | TVHome/TVHome/Views/Panel.cs | 3 | ||||
-rwxr-xr-x | TVHome/TVHome/Views/SubPanel.xaml.cs | 2 | ||||
-rwxr-xr-x | TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/TVHome/TVHome/Views/MainPage.xaml.cs b/TVHome/TVHome/Views/MainPage.xaml.cs index 1c4d048..4175824 100755 --- a/TVHome/TVHome/Views/MainPage.xaml.cs +++ b/TVHome/TVHome/Views/MainPage.xaml.cs @@ -189,6 +189,18 @@ namespace TVHome.Views break; } }; + AppsSubPanel.OnItemClickEventHandler += () => + { + ToggleIconified(); + }; + RecentSubPanel.OnItemClickEventHandler += () => + { + ToggleIconified(); + }; + SettingsSubPanel.OnItemClickEventHandler += () => + { + ToggleIconified(); + }; } protected override void OnAppearing() diff --git a/TVHome/TVHome/Views/Panel.cs b/TVHome/TVHome/Views/Panel.cs index 4451799..fbd7eff 100755 --- a/TVHome/TVHome/Views/Panel.cs +++ b/TVHome/TVHome/Views/Panel.cs @@ -153,5 +153,8 @@ namespace TVHome.Views /// A method for handling to show panel /// </summary> public abstract void ShowPanel(); + + public delegate void ItemClickEventHandler(); + public ItemClickEventHandler OnItemClickEventHandler; } } diff --git a/TVHome/TVHome/Views/SubPanel.xaml.cs b/TVHome/TVHome/Views/SubPanel.xaml.cs index e5be60e..ebdf9c7 100755 --- a/TVHome/TVHome/Views/SubPanel.xaml.cs +++ b/TVHome/TVHome/Views/SubPanel.xaml.cs @@ -182,6 +182,8 @@ namespace TVHome.Views button.OnClickedCommand = new Command(() => { item.DoAction(); + if(!item.StateDescriptions["default"].Label.Equals("Add pin")) + OnItemClickEventHandler?.Invoke(); }); button.OnUnpinCommand = new Command(() => { diff --git a/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs b/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs index 6a8c0c9..3d9a4cb 100755 --- a/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs +++ b/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs @@ -124,6 +124,7 @@ namespace TVHome.Views button.OnClickedCommand = new Command(() => { item.DoAction(); + OnItemClickEventHandler?.Invoke(); }); button.OnClearCommand = new Command(() => { |