summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/SettingsPreferenceFragment.java
Commit message (Collapse)AuthorAgeFilesLines
* Wait with finishing until fingerprints are removedJorim Jaggi2015-08-121-1/+4
| | | | | Bug: 22863210 Change-Id: I490157cc2f9b52ac87cc52e13c7eb57cb4a4a377
* Help fallbacks and intent workJason Monk2015-05-281-1/+1
| | | | | | | | | | - Handle a backup URI, so that if the specified URI is not available, another can be used. - Add some data to help intents when they are intent URIs - Fill in the context with a classname when it isn't present Bug: 15475009 Change-Id: I7050fa61121901929e650b20bd7a0ae21e8ba207
* Fixed an issue with back key behaviorFyodor Kupolov2015-04-301-5/+0
| | | | | | | | Create mHeaderView and set it as a pinned header, each time onActivityCreated is called. Bug: 20652673 Change-Id: Ia0e174f0686ac0abb601c591f3774c9152b785fa
* [WifiSettings] Add progress bar when scanningMaurice Lam2015-04-291-0/+8
| | | | | | | | | | | | | | | | | | | Add a progress bar when the Wi-Fi screen is in a transient state, like enabling, disabling Wi-Fi and scanning for network. This change sets the progress bar as a pinned header at the top of the activity. The pinned header container needs to be match parent so that the progress bar can occupy the full width of the screen. If the header view doesn't want to fill the width, then the header view *inside* the container should be wrap_content. Added an overloaded setPinnedHeader method that takes a layout resource ID, and returns the view to the caller. This way the inflater can set the parent property so that layout params will not be ignored. Bug: 17389577 Change-Id: I18d0eb7c72ad31d1c4b35a54789016c32c81fb93
* Settings: Fabulous "Add rule" button.John Spurlock2015-04-161-0/+8
| | | | | Bug: 20064962 Change-Id: If7ff9d6cdfc61e5dd9e0d3bc4e2228c5fdaf9fa9
* Merge "Allow help to be defined to intent uri"Jason Monk2015-04-141-8/+6
|\
| * Allow help to be defined to intent uriJason Monk2015-04-141-8/+6
| | | | | | | | | | | | | | | | | | Allow help uris to be either an intent uri or as uri (as they were before). Also add a default help uri, and specific helps for several screens. Bug: 15475009 Change-Id: Iff982892973f01d32ff61ea88d4844e9a7153500
* | Fix loading screens for manage and running appsJason Monk2015-04-131-0/+5
|/ | | | | | | | | Also add loading screen to manage permissions as this can take a long time to load in some circumstances. Build loading screens into Utils and SettingsPreferenceFragment so that it can be easily used other places in the future. Change-Id: I7febd06695487e02ced793a9fd418051b5f0eab8
* log visibility of viewsChris Wren2015-03-271-2/+2
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Use correct list index for search highlightingAlan Viverette2014-09-081-6/+9
| | | | | BUG: 14974443 Change-Id: Iad3d3efb2449fc61636c221bde92169293bf5356
* Increase the delay for the Search result Ripple effect to happenFabrice Di Meglio2014-09-041-1/+1
| | | | | | | | | - will actually make the Ripple look better and a bit longer (it was showing and disappearing a bit too fast) See bug: #14974443 Change-Id: I7a0354c679cfa8d9596bcb957c922b8dcf88f0e3
* Fix bug #16957601 Stability: ISE in Settings: Observer com.android.settings.Fabrice Di Meglio2014-08-141-9/+17
| | | | | | | | | | | | | SettingsPreferenceFragment$1@273c8fdb was not registered - add override for onUnbindPreferences() that will unregister the observer if needed - keep track of the root adapter so that we can unregister / register with the correct one (by having a new PreferenceScreen the root adapter would not be the same and thus unregistering the Observer on the new one would not work and create the current bug) Change-Id: I2cef0398c2ae0ab4f5ffd67ca20e8874be997bf6
* Fix bug #16660405 Stability: ISE in Settings: Observer ...Fabrice Di Meglio2014-07-291-6/+11
| | | | | | | | com.android.settings.SettingsPreferenceFragment$1@3c1d9ecb was not registered - use a monitor to control registering / unregistering Change-Id: Id66dd698abf92643c97938e2091c3be38e6b78bd
* Fix bug #16533532 Settings app crashes on device orientation changeFabrice Di Meglio2014-07-251-0/+3
| | | | | | | | | | ...when "change language" warning dialog is on screen - try harder at getting the parent fragment. First try by calling getParentFragment() and if this is getting a null reference, try again by using the fragment Id saved during onSaveInstanceState() Change-Id: I3dbc6a229224c8770ff2c7e432e76b8796c4b099
* Add the capability to set a pinned header to SettingsPreferenceFragmentFabrice Di Meglio2014-07-211-0/+22
| | | | | | | | - add a FrameLayout into the preference list fragment - add public void setPinnedHeaderView(View pinnedHeader) and clearPinnedHeaderView() APIs for adding and clearing the pinned header Change-Id: I50ba5dd150167e0d49cc54bee1203f46db6d7a66
* Fix SettingsPreferenceFragment.startFragment()Fabrice Di Meglio2014-07-011-11/+16
| | | | | | - was always passing R.string.lock_settings_picker_title as a title res Change-Id: Iab47ef3da00e91d5ce3b6dc50c50c943bd78b08f
* Improve Search results highlightingFabrice Di Meglio2014-06-191-40/+0
| | | | | | | | - remove unnecessary code - use keyed Tag with a well known App key for preventing collisions - fix missing Brightness Level preference key (used for highlight) Change-Id: I070e3b8c3cb43da7addd34be192aade21951f57c
* Improve Preference highlighting for SearchFabrice Di Meglio2014-05-211-4/+14
| | | | | | | - cache hightlight Drawable - set mPreferenceHighlighted as early as possible Change-Id: I512d4677e94309175ead22c46b7a78e2aa387e1c
* Fix bug #15115542 Ripple effect is crashing Settings with ↵Fabrice Di Meglio2014-05-211-1/+1
| | | | | | | | | | java.lang.NullPointerException - for having the tint attribute to be populated you need to have the Theme passed. This is why Fragment.getActivity().getDrawable(...) should be used instead of Fragment.getResources().getDrawable(...) Change-Id: I945eca98e1d73fda3b290a6ababfd1fb41118d8f
* TouchFeedbackDrawable is now RippleDrawableAlan Viverette2014-05-191-6/+9
| | | | Change-Id: Id025b58e9b62baa8d07f13b7eae2de61a3e4c90a
* Fix bug #14288652 Settings crash on hitting back key from Tap and Pay screenFabrice Di Meglio2014-04-241-4/+12
| | | | | | | | | | Gasp ... the Observer registering/unregistering code was not totally correct as we were unregistering on a different RootAdapter. - refactor the code for registering / unregistering the Observer - unregister when the Fragment is stopped thru onStop(). Change-Id: I036eacd87c80fd2c9dedca705fb94a57a0c9a21d
* Fix NPE java.lang.IllegalStateException: Observer ↵Fabrice Di Meglio2014-04-211-2/+9
| | | | | | | | com.android.settings.SettingsPreferenceFragment$1@373ee1aa is already registered. - propertly register / unregister the DataSetObserver Change-Id: I04de3c7ec14e71591edc174ebafabe9a1fb165c2
* Enable highlighting of Print servicesFabrice Di Meglio2014-04-211-3/+23
| | | | | | | | | | | - add to SettingsPreferenceFragment to know when the associated RootAdapter is changing and thus being able to find the highlighted Preference - also, add the correct Search key during indexing. She should match the one created when adding dynamically the Preference - last, increase to 400ms the delay to do the highlight Change-Id: I3a1a81fdf5c8ab5f3aaab29f16ea9879ab6df056
* Improve Preference highlightingFabrice Di Meglio2014-04-181-45/+105
| | | | | | | | | | | | | | | | | - use PreferenceFragment.onBindPreferences() to launch highlighting - improve SettingsPreferenceFragment code for highlighting: now we can find the View to highlight thru its Tag if there is no ListAdapter available - add HighlightingFragment for highlighting a View from its tag/key. This is dealing with cases when the content is custom and not relying on SettingsPreferenceFragment (like DataUsageSummary) Also: - improve DataUsageSummary so that onResume() is not recreating the Tabs all the time - add missing "android:keys" on some Security Settings preference files Change-Id: Ib1dd8238fe2fb57c151d584c0810a0e0a5ad97c4
* Fix potential NPE with Preference highlightingFabrice Di Meglio2014-04-161-8/+10
| | | | | | - there are some cases where the ListView adapter is null Change-Id: I9dcd171f57d9ca7b8032d890f5a18c3a01fd38cf
* Improve Preference highlight effectFabrice Di Meglio2014-04-161-4/+1
| | | | | | - restrict the effect to the Preference View itself Change-Id: I3ab04433e1acecb906d0a458b31314f97b9bda03
* Improve Preference highlighting from a Search resultFabrice Di Meglio2014-04-161-27/+69
| | | | | | | | - fix computation of the Preference position in its PreferenceScreen - use "highlight" (scrolling and Ripple effect) for showing the result - "highlight" is only done once Change-Id: I232d79d795b0983beac5a9fec3dfbe9da329c98f
* Add support for saving and using the Preference's key valueFabrice Di Meglio2014-04-081-0/+45
| | | | | | | | | | - modify the SQlite data model - update Index code for managing the key value - pass the key when launching a Fragment or and Activity - implement a small animation for highlighting the Preference from a Search result Change-Id: I617643a4e5e3b752ece8f45ce7d5429037e479da
* Fix bug #12993929 Screen orientation change replaces wifi password dialog ↵Fabrice Di Meglio2014-02-181-11/+9
| | | | | | | | with Add network dialog - use the correct Fragment manager: it should be the child's one Change-Id: I286b276bc6c5180b7c0e458d8562938671d493c8
* Use Drawer in Settings appFabrice Di Meglio2014-02-031-7/+4
| | | | | | | | | | | | | | | | | | | | - get rid of PreferenceActivity as much as we can and use fragments instead - add Drawer widget - add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL) - add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external call thru an Intent Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we would have two Home). Also, verified that: - the WiFi settings still work when called from SetupWizard - when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
* Restriction pin changes.Geoffrey Borggaard2013-08-071-1/+1
| | | | | | | | | Fixed bug in WirelessSettings where it was asking users for a PIN when they weren't restricted. Did this by refactoring the preference level pin checking into the superclass, where it checks for the restricted mode first. Also pin protected changes to certificates for restricted users. Change-Id: I8310fd39f0862159668318fc1360ec6859cc00d5
* Potential fix for a monkey-related NPEAmith Yamasani2013-04-091-1/+9
| | | | | | | | | | Cache the content resolver so that async callbacks, events can continue to get the cntent resolver when detached from the activity. This should help with stability. Bug: 8005271 Change-Id: Ia566bc312ce678b438004bdf4ed7537ac1604608
* Improve error message to figure out which fragment class is problematic.Amith Yamasani2013-02-051-2/+5
| | | | | Bug: 8057867 Change-Id: I6ad0bc8c8a6ed9bc8a1cca5debffe15c6de3a1b5
* 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