// TODO : remove this, only for TDC
if (appID.Contains("etflix") ||
- appID.StartsWith("org.volt"))
+ appID.StartsWith("org.volt") ||
+ appID.StartsWith("org.tizen.emanual"))
{
return true;
}
/// <summary>
/// Sends the launch request
/// </summary>
- /// <param name="AppId"> The app ID to explicitly launch</param>
+ /// <param name="appId"> The app ID to explicitly launch</param>
/// <param name="extraData">The extra data for the app control</param>
/// <param name="fileUri">The file URI to be opened</param>
public void SendLaunchRequest(string appId, IDictionary<string, string> extraData = null, string fileUri = null)
contentFilter.Offset = 0;
contentFilter.Count = limitation;
- IEnumerable<MediaInformation> mediaInformations = null;
+ IEnumerable<MediaInformation> mediaInformations = new List<MediaInformation>();
try
{
foreach (var mediaInformation in mediaInformations)
{
- recentlyPlayedVideos.Add(new RecentlyPlayedMedia()
+ recentlyPlayedVideos.Add(
+ new RecentlyPlayedMedia()
{
MediaId = mediaInformation.MediaId,
ThumbnailPath = mediaInformation.ThumbnailPath,
DisplayName = mediaInformation.DisplayName,
PlayedAt = mediaInformation.PlayedAt,
FilePath = mediaInformation.FilePath,
- }
- );
+ });
}
return recentlyPlayedVideos;
}
result = new string[3];
- result[0] = (item.Label == null || item.Label.Length <= 0) ? "No Name" : item.Label;
+ var itemLabel = "No Name";
+
+ if (item.Label != null && item.Label.Length > 0)
+ {
+ itemLabel = item.Label;
+ }
+
+ result[0] = itemLabel;
result[1] = item.Id;
result[2] = (System.IO.File.Exists(item.IconPath)) ? item.IconPath : "AppIcon.png";
- pkgList.Add(item.Label, result);
+ pkgList.Add(itemLabel, result);
}
return pkgList;
/// </summary>
private int height144 = SizeUtils.GetHeightSize(144);
+ private int height271 = SizeUtils.GetHeightSize(271);
+
private int height284 = SizeUtils.GetHeightSize(284);
private int height300 = SizeUtils.GetHeightSize(300);
//{
// ItemDim.FadeTo((IsDim) ? 0.5 : 0.0, 100);
//}
- else if(e.PropertyName.CompareTo("AppDescription") == 0)
+ else if (e.PropertyName.CompareTo("AppDescription") == 0)
{
ButtonImage.Source = AppDescription.IconPath;
ButtonTitle.Text = AppDescription.Label;
{
ButtonImage.ScaleTo((isShow) ? 1 : 1.195, 167);
ButtonImage.TranslateTo(0, (isShow) ? 0 : height100, 334);
- TextArea.TranslateTo(0, (isShow) ? height300 : height300, 167);
+ TextArea.TranslateTo(0, (isShow) ? height271 : height300, 167);
TextArea.FadeTo((isShow) ? 0.0 : 0.99, 50);
if (isShow)
SizeUtils.SetModelName(modelName);
}
}
- catch(Exception e)
+ catch (Exception e)
{
DebuggingUtils.Err("Cant get model name!!!, " + e.Message);
}
View anchor = sender as View;
- popup.Show(anchor, anchor.Width/2, 0);
+ popup.Show(anchor, anchor.Width / 2, 0);
isPopupShowing = true;
ChangeBackKeyInfoCommand?.Execute(isPopupShowing);
}
{
switch (status)
{
- case AppsStatus.Default:
- SetFocusChainingUpAndDownForDefaultMode();
- break;
case AppsStatus.Pin:
SetFocusChainingUpAndDownForPinMode();
break;
case AppsStatus.Delete:
SetFocusChainingUpAndDownForDeleteMode();
break;
- case AppsStatus.LongPress:
+ default:
SetFocusChainingUpAndDownForDefaultMode();
break;
}
{
AppList.InitializeFocus();
}
+
break;
case AppsStatus.Pin:
FooterNormal.IsVisible = false;
try
{
- InterOp.sniper_init(nativeWindow, callbacks, storagePath, imageWidth, imageHeight);
+ InterOp.Sniper_init(nativeWindow, callbacks, storagePath, imageWidth, imageHeight);
}
catch (DllNotFoundException e)
{
{
try
{
- InterOp.sniper_fini();
+ InterOp.Sniper_fini();
}
catch (DllNotFoundException e)
{
{
try
{
- InterOp.sniper_request_update(instanceId);
+ InterOp.Sniper_request_update(instanceId);
}
catch (DllNotFoundException e)
{
namespace CoreApp
{
+ /// <summary>
+ /// TODO : Comment this
+ /// </summary>
internal static partial class InterOp
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
}
[DllImport("sniper", CharSet = CharSet.Ansi)]
- internal static extern int sniper_init(IntPtr win, SniperCallback callbacks, string path, int w, int h);
+ internal static extern int Sniper_init(IntPtr win, SniperCallback callbacks, string path, int w, int h);
[DllImport("sniper", CharSet = CharSet.Ansi)]
- internal static extern int sniper_request_update(string instanceId);
+ internal static extern int Sniper_request_update(string instanceId);
[DllImport("sniper", CharSet = CharSet.Ansi)]
- internal static extern int sniper_fini();
+ internal static extern int Sniper_fini();
}
}
SubPanelDictionary[SelectedMenuName]?.ForceHidePanel();
#pragma warning disable CS4014
SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, SizeUtils.GetHeightSize(100), 150);
- SubPanelDictionary[SelectedMenuName]?.FadeTo(0,150);
+ SubPanelDictionary[SelectedMenuName]?.FadeTo(0, 150);
DimmedBgImage.FadeTo(0.0, 150);
PageMainPanel.TranslateTo(0.0, 0.0, 150);
#pragma warning restore CS4014
#pragma warning disable CS4014
SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, 0.0, 150);
SubPanelDictionary[SelectedMenuName]?.FadeTo(1.0, 150);
- DimmedBgImage.FadeTo(0.5, 150);
+ DimmedBgImage.FadeTo(1, 150);
PageMainPanel.TranslateTo(0.0, 0.0, 150);
#pragma warning restore CS4014
await PageMainPanel.ScaleTo(1.0, 150);
for (var i = 0; i < recentSubPanelButtons.Count; i++)
{
- if(i != 0)
+ if (i != 0)
{
recentSubPanelButtons[i].FindByName<Button>("ButtonFocusArea").On<Tizen>().SetNextFocusLeftView(recentSubPanelButtons[i - 1].FindByName<Button>("ButtonFocusArea"));
}
+
if (i != recentSubPanelButtons.Count - 1)
{
recentSubPanelButtons[i].FindByName<Button>("ButtonFocusArea").On<Tizen>().SetNextFocusRightView(recentSubPanelButtons[i + 1].FindByName<Button>("ButtonFocusArea"));
{
appsSubPanelButtons[i].FindByName<Button>("ButtonFocusArea").On<Tizen>().SetNextFocusLeftView(appsSubPanelButtons[i - 1].FindByName<Button>("ButtonFocusArea"));
}
+
if (i != appsSubPanelButtons.Count - 1)
{
appsSubPanelButtons[i].FindByName<Button>("ButtonFocusArea").On<Tizen>().SetNextFocusRightView(appsSubPanelButtons[i + 1].FindByName<Button>("ButtonFocusArea"));
button.OnClickedCommand = new Command(() =>
{
item.DoAction();
- if(!item.StateDescriptions["default"].Label.Equals("Add pin"))
+ if (!item.StateDescriptions["default"].Label.Equals("Add pin"))
+ {
OnItemClickEventHandler?.Invoke();
+ }
});
button.OnUnpinCommand = new Command(() =>
{
/// A method is called when apps subpanel is changed to move mode and change item's IsEnabled property.
/// </summary>
/// <param name="selectedBtn">A selected button view to move</param>
+ /// <param name="isEnabled">TODO : Comment this</param>
private void ChangeIsEnabledProperty(View selectedBtn, bool isEnabled)
{
foreach (var item in PanelButtonStack.Children)
/// A method for moving the selected item to right
/// </summary>
/// <param name="index">A index of item to be moved</param>
+ /// <param name="button">TODO : Comment this</param>
private void MoveItemToRight(int index, PanelButton button)
{
var btn = button as SubPanelButton;
animation.Add(0.5, 1, nextScaleUp);
animation.Add(0, 1, nextTranslate);
- animation.Commit(this, "MoveRightAnimation", 16, 334, null, (v, c)=> btn.rightMoving = false);
+ animation.Commit(this, "MoveRightAnimation", 16, 334, null, (v, c) => btn.rightMoving = false);
if (SizeUtils.GetWidthSize((int)(originItemView.X + translateX + 216)) - SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) > SizeUtils.GetWidthSize(1920))
{
/// A method for moving the selected item to left
/// </summary>
/// <param name="index">A index of item to be moved</param>
+ /// <param name="button">TODO : Comment this</param>
private void MoveItemToLeft(int index, PanelButton button)
{
var btn = button as SubPanelButton;
animation.Add(0.5, 1, prevScaleUp);
animation.Add(0, 1, prevTranslate);
- animation.Commit(this, "MoveLeftAnimation", 16, 334, null, (v,c)=> btn.leftMoving = false);
+ animation.Commit(this, "MoveLeftAnimation", 16, 334, null, (v, c) => btn.leftMoving = false);
if (SizeUtils.GetWidthSize((int)(originItemView.X + translateX)) - SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) < 0)
{
{
item.FindByName<Image>("ButtonDimmedImage").Opacity = 0.99;
}
+
TranslationY = selectTransitionHeight;
Opacity = 1;
}
{
item.FindByName<Xamarin.Forms.Image>("ThumnailDimLayer").Opacity = 0;
}
+
isFocused = true;
var button = PanelButtonStack.Children[0];
button.FindByName<Button>("ButtonFocusArea").Focus();
item.IsEnabled = true;
item.FindByName<Xamarin.Forms.Image>("ThumnailDimLayer").Opacity = 1;
}
+
this.TranslationY = selectTransitionHeight;
Opacity = 1;
}