History log of /packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1e899dc127a212bfd2198fe7adba5c33eb4cd751 08-Feb-2017 Gary Mai <garymai@google.com> Handle revoked permissions when resuming the app (1/2)

The activities that create these fragments will request permissions
but if these fragments were created and the permissions were revoked
then Activity's super.onCreate() will recreate these fragments before
the permission activity is started, which causes a bunch of issues
since the original activity never finishes it's onCreate method so
many things aren't initialized for the fragments.
So in activities that maybe start the permission activity and have
visisble fragments, instead of returning, continue initializing
everything.
In the case of editor, not being able to select a raw contact delta
is a legit case so it should have been handled as a failure and in
general we shouldn't be attempting to bind the editors if we don't
have the permissions.

Test: Manually verified removing permissions and going back to the
app from the recent apps screen doesn't crash while viewing:
* main list
* groups view
* first level suggestions
* duplicates view
* account view
* editor
* settings
* pick group member to add view
* pick phone numbers to send to from group
* pick emails to send to from group

The behavior is permissions get requested and will go back to the
original activity (PeopleActivity with main list loaded or the
editor activity).

Bug: 34741297
Change-Id: Ie234b1f44e83372b9c0ad9658fa4a2e9b40572b0
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
0a49afa2ad697307cc04ef4cb86570574fa720f2 06-Dec-2016 Gary Mai <garymai@google.com> Collapse common package (2/2)

Ran optimize imports on the project as well to re-order everything
which would have changed because of removing common.

Test: Built GoogleContacts, GoogleContactsTests, Contacts,
ContactsTests and ran unit tests.

Bug: 33252370
Change-Id: I881f0ba8b8fef002b6eeefa9a16b34f15b2fd2a9
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
3f6a2444e0134b7380cdb2e13abf4bf1163336d0 05-Dec-2016 Arthur Wang <wuwang@google.com> Collapse res-aosp and res-icons into res folder for AOSP Contacts (1/2)

bug:31022536
Change-Id: I0434710d92027e59ccd97e27ebd09f1668346684
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
69c182afb0e6d82a341a28b4317aa703af768906 05-Dec-2016 Gary Mai <garymai@google.com> Collapse common packages (1/?)

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
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
e98d54ede8201d441125d4bbb2851952c4272d10 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving vcard UI to ContactsCommon.

Moving all class in vcard directory in preparation to move
ImportExportDialogFragment.

Bug: 6993891
Change-Id: I5a321892f86f788e874cd6ca0d29f3136645b495
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
a2a35d2022ec64716c6c4985900b55d1c15fe018 03-Dec-2012 Chiao Cheng <chiaocheng@google.com> Remove hard coded PeopleActivity.class from VCard UI.

The PeopleActivity was hard coded as the target activity when clicking on
a vcard processed notification. Since the vcard export can be triggered
from both the dialtacts UI and the people UI, it's strange to always go
back to the people UI.

Change vcard UI classes to accept the calling activity. This way we can
send the user back to the activity that originally triggered the vcard
export.

Bug: 6993891
Change-Id: I9a1fb67e40d5966370922c9c77fbd6f23947dca0
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
62152c3097758e7084eed393556b86bd2fd795b7 16-Aug-2012 Daniel Lehmann <lehmannd@google.com> Use correct external storage directory

Bug:6987701

Change-Id: I6cf56e2067c55955a02019b1262ee943deca61b9
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Global import order fix.

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
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
7cdbe5c0b11acb6128974f593b4ede86b01f95b2 22-Nov-2011 Katherine Kuan <katherinekuan@google.com> Remove titles in simple confirmation dialogs

Bug: 5476234
Change-Id: I7970c3378860e3521b55d248968a4710d8161c04
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
6684914bfe0aa3d81ca64e4109b5d170a75f9a28 06-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Finish exporter Activity after launching VCardService

Bug: 5394627
Change-Id: I1e4998d0e5ab28eb4bce49ea9462b0767cd6d3b3
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
1167da421b68952a590b050c32def7e0eff7cca6 03-Aug-2011 Jeff Hamilton <jham@android.com> Move the notification logic out to a listener
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
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
4292dfa46123a6c0e1de9862b4d8694bfb87875a 23-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing alert dialog icon.

Also fixing selector in the contact editor.

Bug: 3377396
Change-Id: I34ca2e419158fe7869ffda4679ea60fa3c5fdb00
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
783a09a8770f4322a45cee456adefbbc71218ece 22-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix bugs around vCard export and use new APIs

1) let vCard exporter select correct destination.
Multiple vCard exports don't select different destination:
if users request "export", "import" and "export", they will have
just one exported vCard with imported data, not two (one without
import result and another with the result). This is because
each vCard exporter independently refers to existing files in USB
storage.

This changes make vCard service check available files and remember
file names already reserved.

2) use new Notification.Builder API
3) show user-friendly message when there's no vCard on USB storage

Bug: 3219880
Bug: 3219906
Change-Id: I159d25439023eb10934729a00f4da6d157e44b09
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
7c819a1a434e02c54f6d216aa3b1a0d08cc93f50 09-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Rewrite vCard importer/exporter.

- stop using ServiceConnection inside ImportProcessor/ExportProcessor.
Just using methods in VCardService would be much less complicated.
- make VCardService responsible for concurrent import/export requests.
Previously ImportProcessor/ExportProcessor were responsible for them,
which made the code unnecessary complex.
- use Java concurrent library instead of manually managing requests.
- remove immature test. We need to rewrite it in the future.
- add logs.

Bug: 3064531
Bug: 3188526
Change-Id: I2565d91fb7557d786df42da4b8755cd5311434b9
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
f302130a911d812f950c53b4a65bbfe0b2c2159c 25-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add a unit test for handleOneRequestSimple().

Bug: 2733143

Change-Id: I40af33e7d5b4df8100a494de18dc0002368d79c2
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
b73b880e35221d994c1dd739268741baeabe3f9c 22-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Notification fix 2.

Bug: 2733143
Change-Id: I369ca66f4fdb4d29fb20b8d8c451e6f1cf1e5f22
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
d8fb81a0024d30c027ea6ebf57d29d3ff10453fb 09-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactoring vCard importer/exporter.

Rename ImportVCardService to VCardService and make it responsible for all the import/export works.
The service itself asks ImportProcessor/ExportProcessor to handle each request.
This implementation seems much more easier to be tested than the previous ones.

Bug: 2733143

Change-Id: I7b7d391e4ba294f74c8bbcdfb053368b61b498ca
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java
1b918e58f4a3ae8d32af83f6f69bbf2de57a94f9 08-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Move vCard related codes to com.android.contacts.vcard.

Bug: 2733143
Change-Id: I35ddb7473a78131b21311e16583390f5f799c195
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportVCardActivity.java