From: Akash Kumar Date: Fri, 22 Sep 2023 04:57:58 +0000 (+0530) Subject: Resolve backbutton on details page not working if name is unchanged X-Git-Tag: accepted/tizen/unified/20230926.090228^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F299226%2F1;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-bluetooth.git Resolve backbutton on details page not working if name is unchanged Change-Id: Ib213079863d786e449dc90c5a8442b8aa3f486ab Signed-off-by: Akash Kumar --- diff --git a/SettingBluetooth/SettingBluetooth/View/BtDetailView.cs b/SettingBluetooth/SettingBluetooth/View/BtDetailView.cs index 85e6cde..68cc7a2 100644 --- a/SettingBluetooth/SettingBluetooth/View/BtDetailView.cs +++ b/SettingBluetooth/SettingBluetooth/View/BtDetailView.cs @@ -125,11 +125,7 @@ namespace SettingBluetooth private static void OnBackClicked(object sender, ClickedEventArgs e) { - if (mDeviceNameField.Text == mDevice.Name) - { - return; - } - if (mDeviceNameField.Text.Length > 0) + if (mDeviceNameField.Text != mDevice.Name && mDeviceNameField.Text.Length > 0) { mDevice.Name = mDeviceNameField.Text; } diff --git a/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk b/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk index 95730ec..fd01610 100644 Binary files a/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk and b/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk differ