Commit e844e3d5 authored by Azeem Arshad's avatar Azeem Arshad Committed by Commit Bot

[Cellular] Hide technology badge when network is not connected.

This CL updates network icon in OS Settings so that they don't show
cellular technology badge when the network is not connected. This
makes it consistent with Quick Settings menu.

Bug: 1122137
Change-Id: Iae972215c456ff884f26761174a5d80b1568864f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2380580Reviewed-by: default avatarJon Mann <jonmann@chromium.org>
Commit-Queue: Azeem Arshad <azeemarshad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802432}
parent 96442b51
......@@ -216,7 +216,12 @@ Polymer({
* @private
*/
showTechnology_() {
return this.getTechnology_() !== '' && this.showTechnologyBadge;
if (!this.networkState) {
return false;
}
return OncMojo.connectionStateIsConnected(
this.networkState.connectionState) &&
this.getTechnology_() !== '' && this.showTechnologyBadge;
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment