summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Kumar <akash1.kumar@samsung.com>2023-09-22 15:44:14 +0530
committerAkash Kumar <akash1.kumar@samsung.com>2023-09-25 09:06:24 +0530
commit5ec3eca0f264f90a01d0fbcd9fd3ecd4f1e401e0 (patch)
treef2aac06cd6c00406d6ca5244f5719e7f81e5ea9c
parente6af27491810d9784efff911cb0e6e2e1555c975 (diff)
downloadsetting-wifi-accepted/tizen_8.0_unified.tar.gz
setting-wifi-accepted/tizen_8.0_unified.tar.bz2
setting-wifi-accepted/tizen_8.0_unified.zip
This patch: - resolves https://code.sec.samsung.net/jira/browse/TEIGHT-5155 - Updates rpk version from 1.1.4 to 1.1.5 Change-Id: Ie708a61bacae685e10533c5071d53b1f4235d1b4 Signed-off-by: Akash Kumar <akash1.kumar@samsung.com>
-rwxr-xr-xSettingWiFi/SettingWiFi/model/AP.cs28
-rw-r--r--SettingWiFi/SettingWiFi/res/allowed/SettingWiFi/images/wifi-ap_lock_icon.pngbin0 -> 590 bytes
-rwxr-xr-xSettingWiFi/SettingWiFi/tizen-manifest.xml2
-rwxr-xr-xSettingWiFi/SettingWiFi/view/MainPage.cs24
-rw-r--r--packaging/org.tizen.cssetting-wifi-1.1.5.rpk (renamed from packaging/org.tizen.cssetting-wifi-1.1.4.rpk)bin223294 -> 221940 bytes
-rw-r--r--packaging/org.tizen.setting-wifi.spec2
6 files changed, 44 insertions, 12 deletions
diff --git a/SettingWiFi/SettingWiFi/model/AP.cs b/SettingWiFi/SettingWiFi/model/AP.cs
index cc92363..5a6b954 100755
--- a/SettingWiFi/SettingWiFi/model/AP.cs
+++ b/SettingWiFi/SettingWiFi/model/AP.cs
@@ -24,6 +24,7 @@ namespace SettingWiFi
UNKNOWN,
}
string iconDir;
+ string infoIconDir;
private string essid;
private WiFiState state;
private string stateInfo;
@@ -62,11 +63,6 @@ namespace SettingWiFi
{
string iconName = "wifi-ap_icon_";
- if (secType != WiFiSecurityType.None)
- {
- iconName += "lock_";
- }
-
switch (signalStrength)
{
case SignalStrengthIndicator.EXCELLENT:
@@ -87,9 +83,17 @@ namespace SettingWiFi
iconName += ".png";
iconDir = Resources.GetPath() + "/images/" + iconName;
+ }
- Debug("Signal: " + signalStrength.ToString()
- + ", IconDir: " + iconDir); // TODO: will be removed.
+
+ private void UpdateWiFiAPInfoIcon()
+ {
+
+ if (secType != WiFiSecurityType.None)
+ {
+ string iconName = "wifi-ap_lock_icon.png";
+ infoIconDir = Resources.GetPath() + "/images/" + iconName;
+ }
}
public AP()
@@ -103,6 +107,7 @@ namespace SettingWiFi
StateInfo = GetStateInfo(state);
signalStrength = SignalStrengthIndicator.UNKNOWN;
UpdateWiFiAPIcon();
+ UpdateWiFiAPInfoIcon();
}
public AP(WiFiAP apHandle, string apEssid, WiFiState apState,
@@ -118,6 +123,7 @@ namespace SettingWiFi
StateInfo = GetStateInfo(state);
signalStrength = ConvertToSignalStrength(apRssiLevel);
UpdateWiFiAPIcon();
+ UpdateWiFiAPInfoIcon();
}
public WiFiAP ApHandle
@@ -209,6 +215,14 @@ namespace SettingWiFi
}
}
+ public string InfoImageUrl
+ {
+ get
+ {
+ return infoIconDir;
+ }
+ }
+
public string StateInfo
{
get
diff --git a/SettingWiFi/SettingWiFi/res/allowed/SettingWiFi/images/wifi-ap_lock_icon.png b/SettingWiFi/SettingWiFi/res/allowed/SettingWiFi/images/wifi-ap_lock_icon.png
new file mode 100644
index 0000000..973f41e
--- /dev/null
+++ b/SettingWiFi/SettingWiFi/res/allowed/SettingWiFi/images/wifi-ap_lock_icon.png
Binary files differ
diff --git a/SettingWiFi/SettingWiFi/tizen-manifest.xml b/SettingWiFi/SettingWiFi/tizen-manifest.xml
index 6943aa0..d44e73a 100755
--- a/SettingWiFi/SettingWiFi/tizen-manifest.xml
+++ b/SettingWiFi/SettingWiFi/tizen-manifest.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="6.5"
- package="org.tizen.cssetting-wifi" version="1.1.4"
+ package="org.tizen.cssetting-wifi" version="1.1.5"
res-type="org.tizen.appfw.gadget.setting-wifi" res-version="1.5.0">
<allowed-package id="org.tizen.*">
<required-privileges>
diff --git a/SettingWiFi/SettingWiFi/view/MainPage.cs b/SettingWiFi/SettingWiFi/view/MainPage.cs
index ee8a5b9..1b59dad 100755
--- a/SettingWiFi/SettingWiFi/view/MainPage.cs
+++ b/SettingWiFi/SettingWiFi/view/MainPage.cs
@@ -239,9 +239,28 @@ namespace SettingWiFi
return icon;
}
+ private View GetExtraInfoView()
+ {
+ View infoView = new View()
+ {
+ Layout = new LinearLayout()
+ {
+ LinearOrientation = LinearLayout.Orientation.Horizontal,
+ },
+ };
+
+ ImageView icon = new ImageView();
+ icon.SetBinding(ImageView.ResourceUrlProperty, "InfoImageUrl");
+ icon.WidthSpecification = 32;
+ icon.HeightSpecification = 32;
+ infoView.Add(icon);
+ infoView.Add(GetInfoButton());
+ return infoView;
+ }
+
private Button GetInfoButton()
{
- int buttonSize = 25;
+ int buttonSize = 32;
ButtonStyle style = new ButtonStyle()
{
@@ -279,9 +298,8 @@ namespace SettingWiFi
item.SubLabel.HorizontalAlignment = HorizontalAlignment.Begin;
item.Icon = GetApIconImageView();
- item.Extra = GetInfoButton();
+ item.Extra = GetExtraInfoView();
item.IsSelectable = false;
- //OnAppClicked not working as expected as of now. Need to popup contentpage when clicked
item.Clicked += OnAPClicked;
return item;
});
diff --git a/packaging/org.tizen.cssetting-wifi-1.1.4.rpk b/packaging/org.tizen.cssetting-wifi-1.1.5.rpk
index af529c6..c6693a1 100644
--- a/packaging/org.tizen.cssetting-wifi-1.1.4.rpk
+++ b/packaging/org.tizen.cssetting-wifi-1.1.5.rpk
Binary files differ
diff --git a/packaging/org.tizen.setting-wifi.spec b/packaging/org.tizen.setting-wifi.spec
index b90c9d6..d371963 100644
--- a/packaging/org.tizen.setting-wifi.spec
+++ b/packaging/org.tizen.setting-wifi.spec
@@ -1,6 +1,6 @@
Name: org.tizen.setting-wifi
summary: NUI wifi setting application
-Version: 1.1.4
+Version: 1.1.5
Release: 1
Provides: org.tizen.setting-wifi = %{version}-%{release}
Group: Applications/Security