Toggle button should come back to it's off position
<p>In android ICS 4.0.3 source in WifiEnabler.java class I am adding my code to disable wifi when battery voltage reaches below 3.4, the code is like below</p>

<pre><code>public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

    IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
             Intent batteryStatus = mContext.registerReceiver(null, ifilter);
             int voltage = batteryStatus.getIntExtra(BatteryManager.EXTRA_VOLTAGE, -1);
             if(voltage&gt;0 &amp;&amp; voltage&lt;3400) {
                  mSwitch.setChecked(false);
                  mSwitch.setEnabled(false);
                    Toast.makeText(mContext, "Low Battery ! , WiFi Disabled", Toast.LENGTH_SHORT).show();

                return ;

    }
</code></pre>

<p>when the battery voltage reaches 3.4 the wifi will disable. But my problem is the wifi button should come back to it's original off position on it's own. This is not happening in my code. If the user drag it back it will come to off position. I want to do it it's own. the source code link is <a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/settings/wifi/WifiEnabler.java/" rel="nofollow">http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/settings/wifi/WifiEnabler.java/</a></p>
