summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/vcard/NotificationImportExportListener.java
Commit message (Collapse)AuthorAgeFilesLines
* Correct vulnerability when setting pending intents on import/export ↵John Shao2020-08-061-30/+11
| | | | | | | | | | | notifications by setting FLAG_IMMUTABLE For cases where we were setting an empty content intent, setContentIntent has not been required since Gingerbread Bug: 161718556 Test: build Change-Id: I1f62fdc077401fea2c48a31527464464f08a6b64 (cherry picked from commit 1d595f80e9c5157f8ca0285b572c9f1463e05c58)
* Stop using deprecated methods.Julia Reynolds2017-06-231-11/+11
| | | | | | Bug: 37863673 Test: make Change-Id: I4f7ad4f38c21e06235ab8f290ee83a6eebde5b5e
* Run VCardService in foregroundWenyi Wang2017-04-141-20/+11
| | | | | | | | | | | - VCardService will be killed if app targets to O and it runs in background. Bug: 37253794 Test: manually imported/exported 20k contacts while screen is locked Change-Id: I17d8aa7cf3a248c5d27a41bcb7ddf18cbe42d696
* Silence progress notificationsWenyi Wang2017-04-111-1/+3
| | | | | | | | | | | | | | | | | | | - First, we lower the importance of default channel. - Then, we set setOnlyAlertOnce of progress notifications to true. - Also, move the logic to create channel to the place where we construct progress notification for the first time only (instead of creating the channel every time when we construct a progress notification). This didn't lead to a bug but it should be good to change it. Bug: 37217739 Test: 1. manually verified b/36530928 doesn't happen with this CL 2. manually verified no sound is heard when importing/exporting contacts, even if changing the importance of the default channel to make sound. Change-Id: I9a6d1e2f6dae78ac518589cb07721b15a382445e
* Create channel if channel is not availableWenyi Wang2017-03-231-0/+4
| | | | | | | | | | | Bug: 36530928 Test: follow steps to repro in http://b/36530928#comment2 and make sure no crash is seen when importing from SIM or Vcard. Also hard code to stop listening for ACTION_BOOT_COMPLETED and make sure channel is created before setting channel; Change-Id: Ib061e299082670c24a0e248da5a61285cd944ea6
* Start to use notification channelWenyi Wang2017-03-151-0/+5
| | | | | | | | | | | | | - Since we rarely use notifications, we have only 1 channel named "Notifications". Bug: 34129110 Test: manual 1. build eng-o and install it on O 2. export contacts and observe channel is seen Change-Id: I38f2c57b0b9139441223c7cc94c7118d6a9fd323
* Standardize and replace assets with vectorsJohn Shao2016-12-161-1/+1
| | | | | | | | | | | Standarize naming of vector drawables and replace png assets with vector drawables. Test: build and run GoogleContactsTests manual side by side sanity check with previous version Bug: 33251913 Change-Id: Iafea5c1bba738c57437888da999fc2909d0765fd
* Collapse res-aosp and res-icons into res folder for AOSP Contacts (1/2)Arthur Wang2016-12-061-1/+1
| | | | | bug:31022536 Change-Id: I0434710d92027e59ccd97e27ebd09f1668346684
* Collapse common packages (1/?)Gary Mai2016-12-051-0/+318
| | | | | | | | | | | | | Move the majority of packages out of common. When trying to move common.activity to activities every file switched from a rename to separated deletes and adds. Will move tests and the rest of common in a separate CL. Test: Built GoogleContacts, Contacts, GoogleContactsTests, ContactsTests. Bug: 33252370 Change-Id: I9ffb20038dee255ef5f83002b7870265771b08c5
* Moving vcard UI to ContactsCommon.Chiao Cheng2012-12-031-289/+0
| | | | | | | | Moving all class in vcard directory in preparation to move ImportExportDialogFragment. Bug: 6993891 Change-Id: I5a321892f86f788e874cd6ca0d29f3136645b495
* Global import order fix.Chiao Cheng2012-06-121-4/+3
| | | | | | | | | | Changed import order to be in accordance with style guide: http://source.android.com/source/code-style.html#order-import-statements Static imports will be placed at the top since most existing files used that convention. It is also a style that can be handled by both eclipse and intellij. Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
* Use default Notification builder during vCard importDaisuke Miyakawa2011-10-191-26/+14
| | | | | | Bug: 5389192 Bug: 5143034 Change-Id: Iecb1d09b6c1dfa03513f197811a64064c23b2dc9
* Move the notification logic out to a listenerJeff Hamilton2011-08-091-0/+302
so there can be an Activity based version of the listener as well for NFC VCARD imports. Removed the now unused showImmediatley from ImportRequest. Change-Id: I37292676239444516bcc11486fc53e69b869dfa6