Display wired network status only when in wired menu. 37/135137/1
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Wed, 21 Jun 2017 05:12:07 +0000 (10:42 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Wed, 21 Jun 2017 05:15:17 +0000 (10:45 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I6eddded168311510088dddb5fe08bfdff81d6d74

src/layout/layout_network.c

index b55599c..e67a452 100644 (file)
@@ -1362,7 +1362,8 @@ static void _data_event_cb(enum event_type type, void *data)
        case EVENT_DATA_UPDATE_WIRED:
                SETTING_TRACE("Updated wired network");
                /* Wired network setting is changed */
-               _update_wired_network_status(priv);
+               if (priv->cur_type == TYPE_WIRED)
+                       _update_wired_network_status(priv);
                break;
 
        case EVENT_DATA_RETRY_WIRED: