History log of /packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4da0e819ee733f8054bf2fd76b0e0c0e543a18e9 22-Sep-2014 PauloftheWest <paulofthewest@google.com> Fixed a Settings crash when exiting Wi-Fi Settings.

Bug: 17600287
Change-Id: Id2d35e450798785db8e485972036483946f67ef3
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
e2c1d504fc02c08078284841424dc9e6ce49c7d7 16-Sep-2014 Vinit Deshpande <vinitd@google.com> Fix automatic Wi-fi toggle

It is happening because there previous view doesn't disconnect
itself from setting change; and then two views alternatively
enable/disable wifi.

Bug: 17157005

Change-Id: I42916a7bbd735960a26efbae670c9b927ec8574d
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
92239ed799c81f3842302dd65f347d726c8c908d 05-Sep-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15890188 wifi toggle on-off switch missing after skipping setup wizard

- remove any reference to the Switch and use the SwitchBar API instead
- set the initial state of the SwitchBar depending on the WifiManager

Change-Id: I556bf8a007892c057edf7c6c144f71b2dcfe4f99
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
204521626f63bef4a8ac2d76334b94dbb0f3aa3b 13-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> resolved conflicts for merge of f9360dbc to master

Change-Id: I2e468d83a7ce5200c59f63b4362e7bee10d0a2eb
138ff8c0457c6e1345015973668d652fa17c7c3b 12-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Make the SwitchBar appear immediately

- change the way the SwitchBar is shown and hidden
- save its state
- remove the delay transition code

Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
c75417a75864f0fe1a4837c2cc3347cd1d8d83c5 28-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15170508 When I initially load settings, all on/off toggles
...start in off position then move to on after pane loads

Another look at this issue.

- start the Switch as View.GONE and make it View.VISIBLE when
the Wi-Fi state is defined.

Change-Id: I2f3077f779fc4030b2ba9ff3b21be8148add33c3
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
00b5e6b24741257352da975966ebe6c143b2eff5 28-May-2014 Fabrice Di Meglio <fdimeglio@google.com> This CL is not working (even after careful testing) but when I tried I was not completely ToT.

Revert "Fix bug #15170508 When I initially load settings, all on/off toggles start in off position then move to on after pane loads"

This reverts commit 1e52db8063a0be2254097b4d85527a91d141b505.

Change-Id: I73bdfeba4a4b3e993e37cdae1e3733ffe272b9eb
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
1e52db8063a0be2254097b4d85527a91d141b505 28-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15170508 When I initially load settings, all on/off toggles start in off position then move to on after pane loads

- refactor all the code that was using the Switch to control it thru the SwitchBar
- start the Switch as View.GONE and make it View.VISIBLE when it is set
as "enabled" or "checked" so that you dont see the Switch transition (it shows
only with it final state)

Change-Id: I382076bf3c819c530b5b2c06ca2429dfb2cdc6bf
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
41937766981423c9252e12e3319b2e7532739627 14-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Introduce SwitchBar widget

- SwitchBar is a LinearLayout that containts a TextView and a Switch and
is intended to replace all Switches that are put in the ActionBar as a
custom view
- use the new SwitchBar for WifiSetting only for now (a later CL will
take care of all the other Setting that are using a Switch in the
ActionBar)

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
da0e6ff8c25fad17f71166bd14ca655eb11d13b4 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Force Search Index rebuilding for Wifi remembered networks

... when the WiFi swich will be toggled on/off

Change-Id: Iea93819e4c473aafc6aaedf6abb723969dbc9e52
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
784f266cbd0b5934bec8229cf8dbe87180afdda2 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Better decoupling of Index updates in WiFi Settings

- use a Handler

Change-Id: I1e35f2e437021001900468d0df2b75e53b8c62f6
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
490099b1352f9a4dd5c3f2becf3707d5c0d78452 14-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Allow partial Index rebuilding thru updateFromClassNameResource(...)

- add a new boolean parameter to ask for Index rebuilding:
passing "true" will delete first all the data corresponding to the
"className" and then apply the update.

Change-Id: Ifc42fc560a14f5470b466cf6982915d9207fa3c7
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
d25314d3305ed1a07b53991a978cd71219ef2a10 22-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Settings - update for new UI (no more Drawer)

- follow the UX spec by no more using a Drawer
- the Dashboard is now a Fragment that contains the list of Headers
- the search results are also put into a Fragment that is replacing
the initial one (Dashboard or other) when expanding the SearchView
- use a SearchView for query input
- when tapping on a Header or a Search Result, re-launch Settings as
an Activity so that we are benefiting from the Activity stack for
UP affordance and BACK button
- manage UP affordance to show it only when needed
- move some Actions to the Menu in the ActionBar for allowing space
to the Search action and removing some clutter
- fix an issue with the Index and WiFiEnabler and their cached Context
that was not updated when there was a Configuration change
- simplify the SettingsActivity code by extracting some inner classes

Change-Id: I50b5f77bb44a7fade1886114dbbc820609a5e63d
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
5f3442af6f1d1141f8f4dff033d4176214281b81 21-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Use SearchIndexableData enable state for WiFi Settings

- same as for Bluetooth
- now the remembered WiFi networks names can be indexed when
WiFi is turned on

Change-Id: I904ce6a425c21ee07ce3ee8fdc0cd71ab5a18d12
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
7a2466b511cb9a7ab180dcf61f34770ea7d4e669 28-Jun-2013 Robert Greenwalt <rgreenwalt@google.com> am 50702355: am 5d3ef571: am a1454529: Merge "Dont enable Wi-Fi if it\'s not toggleable in flight mode"

* commit '50702355f23d5e270727018c2af7cc76a1bd91eb':
Dont enable Wi-Fi if it's not toggleable in flight mode
5d3ef5715c43ca9c3c969deaf25c76a7d3e27624 28-Jun-2013 Robert Greenwalt <rgreenwalt@google.com> am a1454529: Merge "Dont enable Wi-Fi if it\'s not toggleable in flight mode"

* commit 'a1454529c3eb6d0e87b254888abfea3bb714f7fe':
Dont enable Wi-Fi if it's not toggleable in flight mode
2acaf22ad16a6fedaf71c745c32031744e323f15 28-Jun-2013 Johan Redestig <johan.redestig@sonymobile.com> Dont enable Wi-Fi if it's not toggleable in flight mode

Dont enable Wi-Fi if it's not toggleable in flight mode
by restoring the return which was removed by
e78c1879058571c00879f0d3e756951302adf513

Change-Id: I8ca5a3e9b3f36f148f08ce97b8a2b854bf7de21c
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
70c35ef0710f26768ce3b362d546be2ca5f346f1 16-May-2013 Dmitry Shmidt <dimitrysh@google.com> Disable On/OFF switch before action

Bug: 8715336

Change-Id: I3d4b05ae9dfe109af0b9b06340d52004b73ad0f4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
7e59f73e9cc3d93b8baa1c3e4aa59347d859dfb4 13-May-2013 Robert Greenwalt <rgreenwalt@google.com> Remove wifi scan-always dialog.

When wifi is switched off we no longer want a notification dialog
about scan-always, instead using in-panel text.

bug:8907190
Change-Id: I707f306a056068d92f69070873f1e6330b598b1e
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
c591a8b95da1bdbda332d7827622829af30dad4a 27-Apr-2013 Irfan Sheriff <isheriff@google.com> Add reminder about scan settings on wifi off

Notify the user that scans will be available when
wifi is turned off

Bug: 8732391
Change-Id: If232bfb9f6c3976059bde11280318901c35161e7
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
860eceba2c1e5aea13eafb0d60b64abe9f7c700d 19-Oct-2012 Jeff Sharkey <jsharkey@android.com> More migration to Global settings.

Bug: 7375796
Change-Id: I43079368c32e91e8bb75b00377cd57d1766f15d4
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
b1c0e0b1c93acbc71a2063411ae4ac86f9fc9fbf 15-Sep-2011 Irfan Sheriff <isheriff@google.com> Fix settings handling of wifi events

When wifi events come out, settings has to change the switch state.
Changing switch state causes settings to also enable/disable wifi which
gets into a loop when there is a driver hung event.

Fix to only send framework calls when a user has changed the switch
settings

Bug: 5271322
Change-Id: I0a7d03a3fe0f28622de05981e5f72a9a8814b2d2
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
e78c1879058571c00879f0d3e756951302adf513 21-Jun-2011 Gilles Debunne <debunne@google.com> Settings refactoring

Wifi and bluetooth pane refactored, main toggles moved to left pane.

Change-Id: I42ea4cf3bdf24158f3c67e0dea311258206cd78a
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
cb52d4b4ab1156aa326fc51c878c2e7ba3f1146c 16-Dec-2010 Irfan Sheriff <isheriff@google.com> fix wifi checkbox status update

Bug: 3277268
Change-Id: Idfabf1be41c5e54cd93695de1bb06164760d7fad
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
a6a74e222a994e29a1daa7178943a1fc9dd06c47 24-Mar-2010 Irfan Sheriff <isheriff@google.com> Disable tethering to enable Wifi

We need to explicitly disable wifi while enabling
tethering and disable tethering while enabling wifi

Bug: 2539071
Change-Id: I7fda6e4d9d1bb804e81561d52b5f3a982a674b0e
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
9dee8a96c5682aebff50adc8c87519ee6c36e3ef 04-Feb-2010 Chia-chi Yeh <chiachi@android.com> WifiSettings: tweak the order of calls to registerReceiver() to make the UI better.
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
feeb75613241556ee2a6504a55a2f3849fb4ce4c 16-Jan-2010 Chia-chi Yeh <chiachi@android.com> WifiEnabler: add support to show supplicant state.
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
b90452f3d26201ea6a231f2150204241e66cd3fb 12-Jan-2010 Chia-chi Yeh <chiachi@android.com> Settings: revise WifiEnabler and BluetoothEnabler.

This mainly changes the way both enablers react to the airplane mode. Now
enablers show a toast message instead of disabling the check box directly. This
avoids the inconsistent state introduced by WirelessSettings which controls the
check box using layout dependency.

Related bug: 2053751
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
4e14211d21387d645ecdad406f3350d36e5a8643 25-Dec-2009 Chia-chi Yeh <chiachi@android.com> Settings: revise WifiSettings.
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
1c4e96864f054f0d3d754d21eb4803fe0df6d89f 02-Dec-2009 Jeff Sharkey <jsharkey@android.com> Allow bluetooth in airplane mode when in "toggleable" list.

Settings.System.AIRPLANE_MODE_TOGGLEABLE_RADIOS is a list of
radios that can be toggled while in airplane mode. This CL
changes BluetoothEnabler to respect this.

It parallels the logic in WifiEnabler, which enables OEMs
to allow Wifi changes when in airplane mode.

Most existing devices don't include "bluetooth" in the
toggleable list, which means bluetooth will continue to be
disabled when in airplane mode for those devices.

Fixes http://b/2297314
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
83bcc98af19597a213a8d174e8f1b47453d513ce 30-Jul-2009 Mike Lockwood <lockwood@android.com> Allow enabling Wifi when in airplane mode.

If the new system settings value for AIRPLANE_MODE_TOGGLEABLE_RADIOS
contains RADIO_WIFI, then the user will be allowed to enable Wifi
while in airplane mode.
Turning on airplane mode will still disable Wifi, but the user will
be free to reenable it in the Settings app.

We also allow access to the VPN settings under the same circumstances.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
afc4ab2ffbb8327ddce9907961295a32cbf49d0f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
4e14e5ccbf1ef27220419849133d482a546d5c04 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java
de2d9f5f109265873196f1615e1f3546b114aaa7 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Settings/src/com/android/settings/wifi/WifiEnabler.java