}
};
+ long longDate;
+ if (long.TryParse(item.Value[3], out longDate) == false)
+ {
+ longDate = long.MinValue;
+ }
+
var appShortcutInfo = new AppShortcutInfo()
{
IsRemovable = ApplicationManagerUtils.GetAppInfoRemovable(item.Key),
- // TODO : Fill these correctly by using Tizen Device APIs
- Installed = DateUtils.GetRandomDate(),
+ Installed = new DateTime(longDate),
};
appShortcutInfo.StateDescriptions.Add("default", defaultStateDescription);
/// <summary>
/// A method will be called when the Nativation remote control key is pressed.
/// </summary>
- /// <param name="apkeyNamepID">A pressed remote control key name</param>
+ /// <param name="keyName">A pressed remote control key name</param>
void OnNavigationKeyPressed(string keyName);
}
}
continue;
}
- result = new string[3];
+ result = new string[4];
result[0] = appInfo.Label;
result[1] = appInfo.ApplicationId;
result[2] = (System.IO.File.Exists(appInfo.IconPath)) ? appInfo.IconPath : DefaultAppIcon;
+ result[3] = "" + pkgInfo.InstalledTime;
resultList.Add(appInfo.ApplicationId, result);
}
CreateDoneButton();
//CreateFooterAdditionalText();
}
+
/*
private void CreateFooterAdditionalText()
{
{
return DoneButton;
}
+
/*
private void FooterPinStatusPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
Button button;
Button nextButton;
- for (int i = 1; i < upperCount-1; i++)
+ for (int i = 1; i < upperCount - 1; i++)
{
- prevButton = upperList[i-1].FindByName<Button>("ButtonFocusArea");
+ prevButton = upperList[i - 1].FindByName<Button>("ButtonFocusArea");
button = upperList[i].FindByName<Button>("ButtonFocusArea");
nextButton = upperList[i + 1].FindByName<Button>("ButtonFocusArea");
button?.On<Tizen>()?.SetNextFocusDownView(
lowerList[i].FindByName<Button>("ButtonFocusArea"));
- if (i == upperCount-2)
+ if (i == upperCount - 2)
{
button?.On<Tizen>()?.SetNextFocusDownView(lowerList[i].FindByName<Button>("ButtonFocusArea"));
button?.On<Tizen>()?.SetNextFocusUpView(
upperList[i].FindByName<Button>("ButtonFocusArea"));
- if (i == lowerCount-2)
+ if (i == lowerCount - 2)
{
- nextButton?.On<Tizen>()?.SetNextFocusUpView(upperList[i+1].FindByName<Button>("ButtonFocusArea"));
+ nextButton?.On<Tizen>()?.SetNextFocusUpView(upperList[i + 1].FindByName<Button>("ButtonFocusArea"));
if (upperCount > lowerCount)
{
- nextButton?.On<Tizen>()?.SetNextFocusRightView(upperList[upperCount-1].FindByName<Button>("ButtonFocusArea"));
+ nextButton?.On<Tizen>()?.SetNextFocusRightView(upperList[upperCount - 1].FindByName<Button>("ButtonFocusArea"));
}
else
{
button?.On<Tizen>()?.SetNextFocusDownView(doneButton);
}
- if (lowerList.Count > 0 )
+ if (lowerList.Count > 0)
{
doneButton?.On<Tizen>()?.SetNextFocusUpView(lowerList[lowerList.Count - 1].FindByName<Button>("ButtonFocusArea"));
}
using System;
using System.IO;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Tizen;
namespace CoreApp
{
public string Info;
}
- private void WriteLog(string message)
+ private void WriteLog(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
{
+ Log.Debug("sniper", message);
}
private void AddedCallback(string appId, string instanceId)
}
catch (DllNotFoundException e)
{
- WriteLog("Loadable library is not found\n");
+ WriteLog("Loadable library is not found " + e.StackTrace);
}
WriteLog("Sniper starts monitoring : " + storagePath + "ImageSize : " + imageWidth + "x" + imageHeight);
}
catch (DllNotFoundException e)
{
- WriteLog("Loadable library is not found\n");
+ WriteLog("Loadable library is not found " + e.StackTrace);
}
WriteLog("Sniper stops monitoring : " + storagePath + "ImageSize : " + imageWidth + "x" + imageHeight);
}
catch (DllNotFoundException e)
{
- WriteLog("Loadable library is not found\n");
+ WriteLog("Loadable library is not found " + e.StackTrace);
}
WriteLog("Sniper requests update (" + instanceId + ") : " + storagePath + "ImageSize : " + imageWidth + "x" + imageHeight);
break;
}
});
- PageMainPanel.OnItemSelectedHandler += (id) => {
+ PageMainPanel.OnItemSelectedHandler += (id) =>
+ {
DebuggingUtils.Dbg("Selected Item " + id);
switch (id)
{
{
base.OnAppearing();
- AppsSubPanel.ItemSourceChanged += (s, e)=>
+ AppsSubPanel.ItemSourceChanged += (s, e) =>
{
InitializeAppsSubPanelButtonFocusChain();
};
{
await this.ScaleTo(1, 0);
}
+
public void SetButtonFocus(int idx)
{
var button = PanelButtonGrid.Children[idx];
{
viewItem.TranslateTo(SizeUtils.GetWidthSize((int)viewItem.TranslationX), 0, 0);
}
+
OnMoveVMCommand.Execute(ButtonViewList);
}
});
/// </summary>
public override async void ShowPanel()
{
+#pragma warning disable CS4014
isFocused = false;
foreach (var item in PanelButtonStack.Children)
{
item.FindByName<Image>("ButtonDimmedImage").ScaleTo(1.0, 300);
}
-#pragma warning disable CS4014
this.TranslateTo(0, 0, 300);
#pragma warning restore CS4014
await this.FadeTo(0.3, 300);
animation.Commit(this, "MoveRightAnimation", 334);
- if (SizeUtils.GetWidthSize((int)(originItemView.X + translateX+ 216)) - SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) > SizeUtils.GetWidthSize(1920))
+ if (SizeUtils.GetWidthSize((int)(originItemView.X + translateX + 216)) - SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) > SizeUtils.GetWidthSize(1920))
{
ScrollToRight();
}