summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/SettingsPreferenceFragment.java
Commit message (Collapse)AuthorAgeFilesLines
* Also remove preferences if app is installed, but disabled.Danny Baumann2013-08-071-3/+15
| | | | | Change-Id: I7f23e7a05c336bd16cda3426c7b31922cb92e1b2 JIRA:CYAN-1861
* Lockscreen options : Camera/widgets toggleDanesh Mondegarian2013-07-031-1/+6
| | | | | | | As per https://jira.cyanogenmod.org/browse/CYAN-1243 this commit allows user to control visibility of widgets/camera on lockscreen. Change-Id: Idab2ff4f058e355a1e5936531d9a264b1fea16a1
* Fix: Don't display the lock clock preference if its not installeddh-harald2013-04-141-0/+22
| | | | | | Removed duplicated codes Change-Id: Ib7d54dfc33c6a66711799bbdf44212d287221ae9
* Pass the locale code in the help url for help pages.Amith Yamasani2012-12-061-6/+2
| | | | | | | Otherwise the help will always be shown in English. Bug: 7564049 Change-Id: I94da36aa1ae5aabd118178866b7e570bb77add34
* Improved dialog management in Settings>UsersAmith Yamasani2012-10-021-0/+13
| | | | | | | | | | Bug: 7266284 Delete not functional after orientation change Bug: 7266182 Set up now not functional after orientation change Also remove "vibrate when ringing" on tablets Bug: 7253081 Change-Id: Ie616747f2e3292c401613eb2041b5a5a289cde20
* Show more settings and add restrictions/dialogs for secondary usersAmith Yamasani2012-09-231-0/+8
| | | | | | | | | | Bug: 7213029 crash in About>Status Bug: 7212495 hide System updates for second user Bug: 7212230 nickname editor should select the text Bug: 7160487 TTS settings Bug: 7129411 Settings needs visibility changes for secondary users Change-Id: Ia2d1229c08b392edfa6b671fce4a382410405b14
* Delay calling setHasOptionsMenu() to avoid a crash in Wifi SettingsAmith Yamasani2012-04-231-3/+3
| | | | | | | If it is called in onCreate(), it's too early for Wifi Settings, which does its initialization in onActivityCreated(). Change-Id: I3d9b49f63d342e724fd4795fbca48d08faa3c3cc
* Help menus for several screens.Amith Yamasani2012-04-231-0/+44
| | | | | Bug: 5144896 Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
* Bug 5050590: wrong title for lock screenGilles Debunne2011-08-231-9/+3
| | | | Change-Id: Iba170a25ac56db4140ab91f4fd583c0f676b02b0
* Fix crash after adding a word to the user dictionary.Amith Yamasani2011-01-311-5/+12
| | | | | | | | | Bug: 3407951 Make sure that the parent fragment is a SettingsPreferenceFragment. Otherwise it's not necessary to manage the mDialogFragment. Change-Id: I331a3507fe11a7331ff24ecf64fe8c8c3f613636
* Clear mDialogFragment when it's detachedHung-ying Tyan2011-01-281-0/+12
| | | | | | | | | | | | | | | | | | | | and re-associate it when it's re-created. Before this CL, the association is gone when fragment goes through the pause-resume cycle. Similarly, restore onDismiss and onCancel listeners in VpnSettings.onCreateDialog(), restore states in onCreate() instead of onActivityCreated() so that screen rotation can be handled correctly. Now that profiles are shared between Settings instances, always handle state change in VpnSettings.changeState() so that state changed in one instance can be conveyed to the other and preferences can be correctly enabled/disabled. In additions, fix some trivial mistakes in VpnSettings. Bug: 3396394 Change-Id: I242e1ed6c6d410b4dfefb373d8f98266fc9b46d0
* Fix issue #3400255 Dialog fragments crash on rotation in Settings appDianne Hackborn2011-01-271-15/+10
| | | | Change-Id: I337c1fb41e3fbedd7982418df497487481bb35d2
* Fix alert dialogs in VpnSettings.Hung-ying Tyan2011-01-261-2/+4
| | | | | | | | | | | | | | | | + Don't check mDialogFragment.isVisible() in SettingsPreferenceFragment.removeDialog() as mDialogFragment may not be visible in parent fragment's onResume(). + Replace mConnectDialog with mConnectDialogShowing and remove removeConnectDialog(). + Dismiss alert dialogs in onPause() so that we don't need to maintain extra states during pause-resume cycle. In addition, fix a NPE when startVpnTypeSelection(). Bug: 3381434 Bug: 3289365 Change-Id: Ic4aa87c7a618d95e86e45d6617f2ad7dab35f019
* Allow OnCancelListener and OnDismissListener in Settings appHung-ying Tyan2011-01-251-0/+41
| | | | | | | | | | | for the framework-managed dialogs. DialogFragment acts as both listeners so the application cannot set both listeners in the embedded dialog. New hooks are added in SettingsDialogFragment so that settings apps can do so for the framework-managed dialogs. Bug: 3386670 Change-Id: I144e7c4ccf7f86c61f6079fa86d830c709335af1
* Fix issue #3306021 NPE at ↵Dianne Hackborn2011-01-241-0/+11
| | | | | | | | | | | | | | | | | | | | | android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java) It looks like the dialog fragment was not being removed along with the containing fragment. The containing fragment now checks for when it is being removed and removes its dialog fragment at that point. Also fix issue #3340766 NPE at com.android.settings.applications.RunningProcessesView.startServiceDetailsActivity We need to check if the running processes view is still attached to its owner, since we clear owner when it is paused. In addition, fix a bug where ManageApplications was not persisting its "show background processes" state, and remove the icons from its menu items to make them more understandable in the action bar. Change-Id: I4498ef92023eb60f90758ff18d8eed7b41af79b0
* Add WifiPickerActivity for PICK_WIFI_NETWORKDaisuke Miyakawa2011-01-171-2/+2
| | | | | | | | | | | | - We disable left pane when PICK_WIFI_NETWORK intent is used. - Add ButtonBarHandler interface and let SettingsPreferenceFragment use it instead of Settings. Note that PreferenceActivity#hasNextButton() and PreferenceActivity#getNextButton() are currently protected methods, while Settings' relevants are public. Bug: 3355247 Change-Id: Ie0fae8a1dbce9c7ce37375dff8395dc09b1cc74e
* Remove extra button bar.Amith Yamasani2011-01-121-99/+2
| | | | | | Bug: 3058024 Change-Id: Ib3c2620869729f8916178ea0c0e899635b470a8f
* 3244931 ANR while in settings attempting to enable Accessibility->Talkabout ↵Svetoslav Ganov2010-12-101-7/+40
| | | | | | (IKXEVEREST-1847) Change-Id: Ifea9324671d0e80a417f4b2fe6dbbe981f8b0679
* Move Account & sync settings into Settings app.Amith Yamasani2010-12-011-11/+2
| | | | | | Fragmentized some of the activities and moved buttons into the menu area. Bug: 3148844
* Fix VPN settings flow.Amith Yamasani2010-11-121-41/+2
| | | | Bug: 3053019
* Start fragmentizing battery usage.Dianne Hackborn2010-11-111-7/+0
| | | | Change-Id: I0864f6738b37c3203e166bb8f7e61e8904d9980a
* Implement individual Bluetooth profile connect/disconnect.Jake Hamby2010-11-031-1/+0
| | | | | | | | Allow individual Bluetooth profiles to be connected/disconnected from the device's settings pane. Bug: 3137982 Change-Id: I21512c5bf965fc523f3dc1e83d029b16b5e22440
* Remove OnStateListener and FragmentStarter.Daisuke Miyakawa2010-09-281-50/+9
| | | | | | | | Those interfaces aren't available any more, as we make Settings inherit PreferenceActivity. Bug: 3034757 Change-Id: I2f778a12168e3033291d6935bcc73637e7c78c0b
* Fragmentize VpnSettings and relevant Activities.Daisuke Miyakawa2010-09-151-0/+78
| | | | | | Add startFragment() to SettingsFragmentPreference. Change-Id: Ifab93b2e68892d5f6da559f337c94d62629780c8
* Fragmentize BluetoothSettings.Daisuke Miyakawa2010-09-131-0/+4
| | | | | | | | | Add UserLeaveHintListener.java, so that the settings won't use its implementation around Activity#onUserLeaveHint(). Also fragmentize bluetooth tethering screen. Change-Id: Id06ae3161fbdb5854ddb7a257f464fb16ea9b089
* Fragmentize UserDictionary.Daisuke Miyakawa2010-09-131-0/+5
| | | | | | | Depending on I2c962726b0adc8811c18dd6df7ff7bdc93c31a07, which implements DialogCreatable. Change-Id: I9857e592218731bfbddc578c15180cc681fa4d20
* Fragmentize ProxySettings.Daisuke Miyakawa2010-09-121-4/+10
| | | | Change-Id: I2c962726b0adc8811c18dd6df7ff7bdc93c31a07
* Breadcrumbs in the action bar for navigating up one level and showing ↵Amith Yamasani2010-09-121-1/+5
| | | | | | current title. Change-Id: I595e06549b888bd67c6dddd599a4cc77416c3a41
* Fragmentize WifiSettings.Daisuke Miyakawa2010-08-251-0/+114
| | | | | | | | | | | | | | | | - Add button bar feature toward SettingsPreferenceFragment, which has existed in PreferenceActivity and has been used (probably) only by Settings app. - super.onActivityCreated() is not called at the beggining of WifiSettings#onActivityCreated(), the parent method assumes the child should have prepared PreferenceScreen, while WifiSettings cannot do until the parent Activity is ready. - Call SetHasOptionMenu() should be called AFTER the parent Activity is ready. It is not documented, so it would be better to file another bug. - Add exception to proguard... Change-Id: Iebd27f0cb0abdbee9b4b1cc9b00f4bf127f7815d
* Refactor settings top level activities to use fragments.Amith Yamasani2010-08-181-0/+137
Added a base class SettingsPreferenceFragment from which the settings activities should be derived so that they can behave like fragments. It contains some commonly called utility methods and dialog conversion to DialogFragment. Some of the top-level activities can be launched directly without the left pane. Settings.java acts as a proxy activity that contains just that settings fragment without the left pane. There are still a lot of second and third level activities that need to be fragmentized. This is just the first pass to test the 2-pane layout.