@Override
 public void setListening(boolean listening) {
   if (listening) {
     mController.addSignalCallback(mSignalCallback);
   } else {
     mController.removeSignalCallback(mSignalCallback);
   }
 }
 @Override
 protected void handleSecondaryClick() {
   if (!mWifiController.canConfigWifi()) {
     mHost.startActivityDismissingKeyguard(new Intent(Settings.ACTION_WIFI_SETTINGS));
     return;
   }
   if (!mState.enabled) {
     mController.setWifiEnabled(true);
     mState.enabled = true;
   }
   showDetail(true);
 }
 @Override
 protected void handleClick() {
   mState.copyTo(mStateBeforeClick);
   MetricsLogger.action(mContext, getMetricsCategory(), !mState.enabled);
   mController.setWifiEnabled(!mState.enabled);
 }
 public WifiTile(Host host) {
   super(host);
   mController = host.getNetworkController();
   mWifiController = mController.getAccessPointController();
   mDetailAdapter = new WifiDetailAdapter();
 }