Fix showNetworkState is not defined

Change-Id: Iffd914010cca8e978393aa299dc89ff222ca74c4