summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/print
Commit message (Collapse)AuthorAgeFilesLines
* Set service name to printer service setting titleMakoto Onuki2015-06-221-0/+10
| | | | | | Bug 21899319 Change-Id: I940957dd4036eb3386c7f59fbbd3608e7169f415
* Promote "add service" from menu to list itemMakoto Onuki2015-06-111-18/+68
| | | | | | | | Also show the app icon for each service. Bug 19914125 Change-Id: I592c526746a3ec9f67e8e8a6c6f1530e7724e310
* [WifiSettings] Add progress bar when scanningMaurice Lam2015-04-291-3/+1
| | | | | | | | | | | | | | | | | | | 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
* Allow help to be defined to intent uriJason Monk2015-04-141-0/+5
| | | | | | | | | 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
* log visibility of viewsChris Wren2015-03-273-0/+18
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Allow system apps to add to settings dashboardJason Monk2015-03-251-5/+4
| | | | | | | | | | | | | | | | | | | Allow system apps to add a tile to the top level of settings that links to an activity through adding a filter for a specific action. Determine the info for the tile based off manifest info for the activity. Also allow the same for managed profiles, but show a dialog in between to select which profile. The category in which the item is to be placed must be in meta-data. The icon and title can be specified through meta-data as well or if unspecified the activity's label and icon will be used. Also added an optional <external-tiles> tag to the dashboard category xml, this allows Settings to put external tiles in the middle of some categories (Personal does this). Bug: 19443117 Change-Id: Idc9938d1549d181103a3030a8784b527215a8399
* Settings: Remove all unused imports.John Spurlock2015-03-182-4/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* Fix crash in print settings utilsSvetoslav2015-02-031-2/+5
| | | | Change-Id: I8000b674c0579988d6dfae2fcff136a06c721362
* Settings not showing print jobs for a managed profile.Svetoslav2015-01-132-2/+2
| | | | | | | | | | | The settings app is shared among the personal and work profiles. When fetching print jobs it was not getting the ones for the work profile, rather the ones for the current user which is the personal profile. bug:18867406 Change-Id: I99f8cf3a3e2b133a0a4d5a8915473d1190e205f4
* IllegalStateException fixed in print service settingsRaju Yadav2014-11-251-3/+8
| | | | | | | | | Settings crashed due to IllegalStateException as OnQueryTextListener refers to an already detached view. The listener is set to null on press of home key (onPause). Change-Id: I96052f95689ae17dd1b4e9d1c313100b7b47a599
* Reset spinner selectionAlexandra Gherghina2014-10-161-4/+7
| | | | | | | | This makes sure that when you go back to the spinner screen, the selection is the one corresponding to the current profile. Bug: 17378446 Change-Id: I536cc2701f9481986a63df1b01a38151edf2fa83
* Crash in Settings cancelling a print job from the job list.Svetoslav2014-09-191-2/+7
| | | | | | bug:17585582 Change-Id: I44aef7e09c26141388b410762e93164d8df9a0c6
* Fix settings crash in print job screen.Svetoslav2014-09-111-9/+15
| | | | | | | | | | | | The code was looking up the print job from the print manager based on the lifecycle event of the hosting fragment. There was a case missing and the print job not initialized on rotation. This change looks up the job lazily making the code more robust. bug:17471952 Change-Id: I00075e161f69ca711bac6857f5ec00c20b5b17a0
* Fix print icons in settings.Svetoslav2014-09-102-4/+4
| | | | | | | | | | | | The print icons are in the framework resources and are not tinted to enable usage from various places such as print spooler and settings with different tinting. Settings was using not-tinted print icons which were invisible on the white background. This change switches settings to user tinted drawables. bug:16966145 Change-Id: I2cf55d36d90b0192ba23686aac4f1d8e7e23f75a
* Merge "Reset Settings task when using the user switcher" into lmp-devAlexandra Gherghina2014-09-081-1/+1
|\
| * Reset Settings task when using the user switcherAlexandra Gherghina2014-09-051-1/+1
| | | | | | | | | | Bug: 17294618 Change-Id: I8bd9d7226e52017938828f3bc195cc995fe80b20
* | Fix an occasional crash in print job state fragment in Settings.Svetoslav2014-09-041-3/+4
|/ | | | | | | | | | | | | | | | | | | | There is a NPE in the print settings if the following occurs: We open the print job state UI in settings for an ongoing print job (now we have action bar buttons for cancel and restart); now the print job gets completed and we update the UI and since the print job is not longer present we nullify the current job reference and finish the activity. But since activity is not finished immediately there is an opportunity for the user to click on the action bar options which results in NPE. The fix is to not update the print job instance in the update UI method if the job is not available, i.e. the update method does not mutate state if the job is no longer present, as we are finishing and performing an operation on a finished job will have no effect. bug:17387134 Change-Id: I501ed1e05b8b70584b3299a16e93ead5ab7f155f
* Extract common functionality for profile spinner into UtilsAlexandra Gherghina2014-07-311-14/+3
| | | | | Bug: 16645615 Change-Id: Ic8928fff8294cd99eeb86b69b44b8e4128cadf92
* Remove unnecessary code.Svetoslav2014-07-291-10/+3
| | | | Change-Id: I4a81cd7f855bb075ab71f6c6c812288e3677c90a
* Toggle between primary and managed profile in Print SettingsAlexandra Gherghina2014-07-291-2/+57
| | | | | | | | | This adds a spinner to the print settings screen which can be used to toggle between the Settings app in the primary and managed profile so that the user can edit settings belonging to both profiles. Bug: 16369104 Change-Id: I2556a331d09379c2a501bc6b192ab1631b5215f5
* Fix some Dashboard top categories not showing for SearchFabrice Di Meglio2014-07-011-8/+12
| | | | | | | | - fix Date & time / Printing / Security See bug: #12910134 Implement Search into the Settings App Change-Id: I7e96eb35a6802fde7589ccfe244e71f8be43dea8
* Fix bug #15897505 Talk back state shows "off" while the talk back is still ↵Fabrice Di Meglio2014-06-271-6/+6
| | | | | | | | | | enabled. - we were missing the update of the TextView from the SwitchBar so provide a new setCheckedInternal() method that is doing the TextView and Switch update at the same time Change-Id: I6dd9c472a386bb534a58fbf5cf82d9d01fa74f6c
* resolved conflicts for merge of f9360dbc to masterFabrice Di Meglio2014-06-121-4/+4
|\ | | | | | | Change-Id: I2e468d83a7ce5200c59f63b4362e7bee10d0a2eb
| * Make the SwitchBar appear immediatelyFabrice Di Meglio2014-06-121-4/+4
| | | | | | | | | | | | | | | | - change the way the SwitchBar is shown and hidden - save its state - remove the delay transition code Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
* | am 6bfec2d6: Remove all dialog icons in SettingsAlan Viverette2014-06-111-1/+0
|\ \ | |/ | | | | | | * commit '6bfec2d6b197068dd355bd1742179fe3da07136f': Remove all dialog icons in Settings
| * Remove all dialog icons in SettingsAlan Viverette2014-06-101-1/+0
| | | | | | | | | | BUG: 15474733 Change-Id: I43ab10a3bbcabdac6109abf80266f1c4b52bf6fb
* | Merge "Update the settings due to a framework API change."2014-06-061-1/+1
|\ \ | |/ |/|
| * Update the settings due to a framework API change.2014-06-041-1/+1
| | | | | | | | Change-Id: I5248b2a6c9f6d9ac60e9b21a0f5377b19c9a3b36
| * This CL is not working (even after careful testing) but when I tried I was ↵Fabrice Di Meglio2014-05-281-8/+11
| | | | | | | | | | | | | | | | | | | | 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
| * Fix bug #15170508 When I initially load settings, all on/off toggles start ↵Fabrice Di Meglio2014-05-271-11/+8
| | | | | | | | | | | | | | | | | | | | | | 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
* | Push Local Printer Search action to the ActionMenuFabrice Di Meglio2014-06-021-1/+1
|/ | | | | | See bug #14325350 Printing > CloudPrint ActionBar is overcrowded Change-Id: I9c7ca08ecbcf2a918239d952dc8c23315c46f152
* Fix bug #15109661 Settings crash after tap on back key from print settingsFabrice Di Meglio2014-05-201-9/+4
| | | | | | - use onResume() / onPause() for adding / removing the SwitchChangeListener Change-Id: Ia3a4ff57075d2668e446df4f4f09e4593cc34761
* Use SwitchBar for Print SettingsFabrice Di Meglio2014-05-152-70/+23
| | | | | | | | - follow up CL to 41937766981423c9252e12e3319b2e7532739627 Related to bug #14898161 On/Off switches must move down from Action Bar Change-Id: Ife4990a52ef282563267dc0bff6d3a7f354b0bd0
* Rename SettingsUtils to PrintSettingsUtilsFabrice Di Meglio2014-04-213-6/+6
| | | | Change-Id: I67e9222265f6326b399de3779f2210e202777ecd
* Code cleaningFabrice Di Meglio2014-04-211-1/+1
| | | | | | - remove duplicate semicolon Change-Id: I807ce89dfa6b46c415a95a9c6cdc71fd3e9a2502
* Enable highlighting of Print servicesFabrice Di Meglio2014-04-211-0/+6
| | | | | | | | | | | - 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
* Fix Print title name in search resultsFabrice Di Meglio2014-04-181-1/+1
| | | | | | - use R.string.print_settings Change-Id: I3a945aed9efbc323e865db1cdbcfd8ceeb6b2558
* Make all the Settings Switches appear againFabrice Di Meglio2014-04-182-7/+4
| | | | | | | - use the ActionBar Theme context when creating the Switch for getting the correct Theming Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
* Adding search for dynamic print settings.Svetoslav2014-04-111-8/+53
| | | | | | | | | The print service list is dynamically constructed, therefore we need a local provider that will emit print service data to be indexed. bug:13929163 Change-Id: I51d5ae40c00edc6be7b212dc8aa08fd7ebfbf349
* Fix Switch button creation for PrintServiceFabrice Di Meglio2014-04-081-5/+17
| | | | | | - setup the ActionBar switch in the onStart() Change-Id: I92d8bb34dd7925da79a10fe01790131d22f7d0d8
* Code cleaning for Printing SettingsFabrice Di Meglio2014-02-131-8/+0
| | | | | | - remove non needed code Change-Id: I18a3992d66721dbeba6870aa2834e1c717640a15
* There are several painful issues with the initial CL. Doing a revert for now ↵Fabrice Di Meglio2014-02-111-0/+8
| | | | | | | | | | and will rework this. Revert "Fix bug #12939786 BACK should go back into the Fragments BackStack and finally to Overview ...and then exit the Settings App" This reverts commit 4cc95a53c2d9080095c4e1e06f815b8bc7a2cdfe. Change-Id: Iaa21d4771d0b004eff3d8e68b91b546a633d8f23
* Fix bug #12939786 BACK should go back into the Fragments BackStack and ↵Fabrice Di Meglio2014-02-101-8/+0
| | | | | | | | | | | finally to Overview ...and then exit the Settings App - fix the way we manage the Fragment BackStack - revert back ChooseLockGeneric to be a PreferenceActivity Change-Id: I3c366b4be606e2e211facd0299b9a2de5cc6ea79
* Use Drawer in Settings appFabrice Di Meglio2014-02-031-6/+5
| | | | | | | | | | | | | | | | | | | | - 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
* am 03360cd2: am 196bc5c6: am e7b781f5: Merge "Show correct message for a ↵Svetoslav2013-11-142-14/+37
|\ | | | | | | | | | | | | print job that is being canceled." into klp-dev * commit '03360cd23910c73c78a822c559acb3eb66a8e07b': Show correct message for a print job that is being canceled.
| * Show correct message for a print job that is being canceled.Svetoslav2013-11-142-14/+37
| | | | | | | | | | | | | | | | | | | | | | | | 1. If a print job is being canceled we now show appropriate message that matches what the notification shows. 2. If a print job is being canceled we do not show the cancel button. bug:11696928 Change-Id: I0fc4f8226c4aa9acd6a4b65811f4228e56018315
* | am be74fb8d: am 43b8946f: am d9f156dd: Coalescing multiple print job ↵Svetoslav2013-10-102-31/+9
|\ \ | |/ | | | | | | | | | | notifications (Settings) * commit 'be74fb8d729828642cce0514e1043c290e8ceea0': Coalescing multiple print job notifications (Settings)
| * Coalescing multiple print job notifications (Settings)Svetoslav2013-10-092-31/+9
| | | | | | | | | | | | | | | | | | | | We used to show a single notificaiton for every print job but this is against th UX guidelines. Since we have to lead by example, this change adds coalescing of multiple notifications. bug:11155212 Change-Id: I865450495e7e85bd6620c1f42aeef07d2f83a01a
* | resolved conflicts for merge of 372cd6ab to masterSvetoslav2013-10-081-0/+19
|\ \ | |/ | | | | Change-Id: I9232fbe01926436e8ad5c6c7e63ce95fbe842ccb
| * Fix a crash in the print service settigns.Svetoslav2013-10-081-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | When the search view is attached and detached we announce that for accessibility. The trouble is that if the activity is being torn down we are trying to access resources from a fragment that is detached and the qcrash occurs. This change does not try to access resources if the activity is finishing and also we do not load resource strings if accessibility is not enabled. bug:11127814 Change-Id: If3e97b6e94687775386a43c8fa54fd45140306eb