History log of /packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b1361f9f379001fd27511c80655c52dd70a15122 21-Feb-2016 Sailesh Nepal <sail@google.com> Add gradle build file for ContactsCommon

Note, because the code now builds as a library project, resource IDs
are no longer final. This means that they can't be used inside switch
statements. Fix was to change everything to if statements.

Bug: 26676586
Change-Id: Ia4bee80783ab6b6f34c9b19e78f3b475dbea00b0
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
3d7d24f05968c8dac5ecdd5b35489d12f4b6815c 19-Feb-2016 Wenyi Wang <wenyiw@google.com> Bring back code to share favorite contacts

ag/865209 led to an error that pressing "share favorite contacts"
would share all contacts. For favorite and frequently contacted
contacts, we should still use the previous method to fetch and
share, because there will not be many of them and it won't take
long.

In addition, we also show toast in UI thread

Bug 22083005
Bug 26906732
Bug 26964977

Change-Id: I4db6bc4d79cec5ec75197accb3ac049e0fe29722
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
81c9c1da36cb58d7c583642a5f9449f113c8aedd 04-Feb-2016 Wenyi Wang <wenyiw@google.com> Save contacts to local file and share

We extend ExportVCardActivity in order to reuse VCarcService
to write contacts data to vcf file in background. This change
gets rid of TransactionTooLargeException and provides better
user experience, since we write data in background.

The current UX design is: user will receive Toast message
once export file is ready, and then user needs to tap the
notification to share contacts.

Bug 22083005

Change-Id: I7d7142f3037b1a0647d185d477365df8f2994271
(cherry picked from commit e6c7494bbafe1bef1187245510b1ec0beba6ce10)
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
70c5989ee8554590ff2f4ec5a1185a5581bfaa10 28-Jan-2016 Wenyi Wang <wenyiw@google.com> Use proper strings for different "share" options

Bug: 22083005
Bug: 21640772

Change-Id: I2f526aa208ef40c09739498ea3a3f21e71f7cf76
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
10cebcd7d9311fdee25aa735389982150bbb01d1 09-Dec-2015 Wenyi Wang <wenyiw@google.com> Enable importing from SIM on pre-(L-MR1) SDKs

Multiple SIM card support was added in L-MR1 (API level 22).
The SubscriptionManager was added and used in L-MR1 and onwards,
so we use TelephonyManager as a workaround on pre-(L-MR1) SDKs.
See ag/473449 for details of importing from SIM on pre-(L-MR1) SDKs.

Bug: 25629359
Change-Id: I6553c445e74ecfe5eadc422996924a573b7396c4
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
e1206ee3eb0d1015d693588ce91da374a817b1c9 05-Dec-2015 Brandon Maxwell <maxwelb@google.com> Using Compat code for createTtsSpannable

Bug:25776171
Change-Id: I04f9f08a5e032751c35a9a8c0e0d4b390d3843c3
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
0a614a1c8f7fd866521cfb1d488d9509e6e0e930 18-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix usage of getContext() on pre-M SDKs (1/2)

Bug: 25629359
Change-Id: I3a6c3413452d3f35aeea4011e15e420419ed0577
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
3b48653164b2d779f8feabbce5331010979f7180 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Fix for "Share visible contacts" in Favorites tab.

Bug: 19850584
Change-Id: I4d2c33a43226c42ce7a75399a234bc276fcfa006
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
65ee5ddb67813156460ca4c4373922df1a79e917 06-Aug-2015 Jay Shrauner <shrauner@google.com> Catch SecurityExceptions in onCreateDialog

Catch exceptions thrown if missing READ_PHONE_STATE;
don't list the menu items that require reading from the SIM
in that case.

Bug:22984670
Change-Id: I845d597858917dde57bb1f22c05f6be095517fd4
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
ed2a24cb0a9f207e4f1211cfff51bd8e6bcfad90 14-Jul-2015 Walter Jang <wjang@google.com> Allow the user to select the vcards to import

Rather than always scanning for .vcf files in external storage

This is the flip-side to b/22453182 where we changed to allow
the user to select the destination for vcard export so that
we could remove the WRITE_EXTERNAL_STORAGE permission.

Additionally, we change the import/export options in the
dialog to read "Export to .vcf file" and "Import from .vcf file"
since the previous text (Just "Export" and "Import from external
storage" are not accurate.

Note, we continue to support importing from multiple .vcf files
at once but we no longer need our own dialog to present those
options to the user.

Bug 22454038

Change-Id: I1a145f00f07c4c0f547c38d720c109197baab833
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
42765f6a00cedc980529cead74f829ddb3d05f16 01-Jul-2015 Walter Jang <wjang@google.com> Let the user choose where to export vcards to 1/3

Instead of always using external storage.

Also we change the suggested export filename
from something like 00001.vcf to just contacts.vcf.
Since we don't know the destination directory
anymore untill after it is selected, we can't check
if there is already an exported vcf file there in.
The Activity handling ACTION_CREATE_DOCUMENT handles
file name collisions itself anyway.

Screenshots https://goto.google.com/b22208705

Bug 22208705

Change-Id: I17bac2f483e200c13adf1429c0eade17e4d2908a
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
9ff4c57b4043f7f13abe4fcfdbe0cb2328627bed 26-Jun-2015 Brian Attwell <brianattwell@google.com> Catch transaction too large exception

If you are sharing a bazillion contacts, then the
shared intent's URI can be longer than the binder
limit. This causes a crash. For now, lets prevent
the crash from occuring and show a toast.

Bug: 22083005
Change-Id: I2028929a49240a1982301b46f7e2eb4b3d6239bb
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
c30de25fea532591e85c33966e04aa1443710eab 02-Jun-2015 Brian Attwell <brianattwell@google.com> Rename PhoneNumberUtils APIs

In response to more API review.

And removed unneeded permission from
RequestPermissionsActivity.

Bug: 21571895
Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
5a8dc08da63762d69b71938b45ccb96ad4076a00 20-Feb-2015 Brian Attwell <brianattwell@google.com> Avoid senseless disambiguation #1/2

This makes having two contacts apps on the same
device tolerable.

Bug: 18777272
Change-Id: Ib75eadfb94eee2c5c8305747eddd01ba9a8b1dc4
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
941090ea5f2cd169038bd9f6c2811d6bc12db6a5 05-Feb-2015 Brian Attwell <brianattwell@google.com> Use unhidden PhoneNumberUtils TtsSpan methods

Bug: 18777272
Change-Id: Ie6d19e39176d06da0c039e6e056bdbc438cc3ccd
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
90b8b6dfa7ee6ab6f2e473ea3cfa7d80e526bf9a 03-Feb-2015 Brian Attwell <brianattwell@google.com> Don't use hidden INVALID_SUBSCRIPTION_ID

Alternatively, I could unhide INVALID_SUBSCRIPTION_ID.
However, the affected code doesn't actually need to know
the value of SubscriptionManager#INVALID_SUBSCRIPTION_ID.

ContactsCommon simply uses INVALID_SUB_ID when the value
for subscription ID doesn't matter, because we know
the mSubscriptionId value won't be read later.

Bug: 18777272
Change-Id: I473ef361ae6cfa3a1484c38ca3aed88cc0b5d6d1
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
cb067c8d010b2ddc11746ea9fdb854104be00051 06-Dec-2014 Ihab Awad <ihab@google.com> Add Text-to-Speech annotations to import/export menu phone numbers

Bug: 17321294
Change-Id: Iee6a3a9d26e464140f6cfdbd982297f0da06006f
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
2f3fd5f7b5ee3ef74362509ef596063cea122f89 25-Nov-2014 Jay Shrauner <shrauner@google.com> Fix int/long mismatch for import from SIM

Make subscription id an int everywhere.

Bug:18524128
Change-Id: I33e443603acb4fbf6d67697b289d99b57ff0bbcd
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
ff95fe1ca9cc570acc41c9335a6cdeecfd851e44 22-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
426b4719d8c1d42990225fc49c3851112471f098 20-Nov-2014 Wink Saville <wink@google.com> Revert "Additional changes to SubscriptionManager API as per API council."

This reverts commit a63ae799821744f941a1f2d43850372199e075e8.

Change-Id: I30d9b82aeaff5595fe952313b5728fb9f6c2c076
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
a63ae799821744f941a1f2d43850372199e075e8 16-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: I7773965094510999bfce8fc6b2b31ba6ce496653
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
e47a2da6abcecf9677d105aef85ec623f0093161 06-Nov-2014 Wink Saville <wink@google.com> Update SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Ib39a60e4f75981a466e9d606ec627756efad018d
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
de48a0dacbdb17dbb6407fc11be42ae19138d728 31-Oct-2014 Stuart Scott <stuartscott@google.com> Clean up public API of SubInfoRecord.

bug: 17575308
Change-Id: I80472fe13887b6ed3bfc422abbbe4644a6d6dcf5
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
3ca0571e873c6e5e109f1807c2a511edec31867a 31-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Improve analytics" into lmp-mr1-dev
9dff772a039db6bf7c73b3b04aeea2eb2f8c8356 27-Oct-2014 Brian Attwell <brianattwell@google.com> Improve analytics

Removes the existing buggy & verbose analytics classes. Instead adds
the AnalyticsUtil. Like before, analytics will automatically be added
to all activities. They need to be manually setup for fragments
that you care about.

Improving analytics CL #2/4

Bug: 18039620
Change-Id: I99a4062e09e7614e5369d795132172d4d1867600
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
d09e43ca0bd57c25cbd4e4a87bff0b9fc10a1459 23-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
f938fa22b0901d9a566be1ec3975554f3623f795 23-Oct-2014 Brian Attwell <brianattwell@google.com> Use analytics activities and fragments

All ContactsCommon's activities and fragments now inherit from
analytics base classes.

Also renamed dialerbind.analytics -> commonbind.analytics

Analytics CL #1/6

Bug: 18039620
Change-Id: Ie9cef92bfcadf6764970d70474ced24dba7f828d
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
9524fd1d86a83d323b2c5fc7a57667906ced827c 06-Oct-2014 Brian Attwell <brianattwell@google.com> Allow importing contacts from mulitple sims

There are multiple options we may need to display under Import/Export
for SIM cards

1. If only one sim card, display "Import from SIM" option

2. If multiple SIMs, display "Import from SIM, <name> - <phone-number>
for each sim subscription.

3. If a sim subscription doesn't have a known phone number, display
"Import from SIM, <name>" for the sim subscription.

Bug: 16525652
Change-Id: I73b3c45be116c75d597727f4b31ccf2d0e61c623
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
bd9e50a0010ad4cfec4446d04b7553905334e49b 06-Aug-2014 Sai Cheemalapati <saicheems@google.com> Added an analytics dialog fragment.

Added another fragment to analytics scope.
ImportExportDialogFragment now reports views.

Change-Id: I850e7edd7f20e54b31937c08b48851d557859bb2
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
b79de85a90f09bd520dd6b0d5afaf905c5e52753 28-May-2014 Yorke Lee <yorkelee@google.com> Remove use of TelephonyManager.getDefault

Bug: 6948882
Change-Id: Ie542eb92bb1fbe410af9e14229286ce23a92acb3
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java
333d375e891fa1d5285f0d8d514b85a30e707caf 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ImportExportDialogFragment to ContactCommon.

This completes the dependency clean-up of the PhoneFavoriteFragment in the
dialer.

Bug: 6993891
Change-Id: I76200a7b2f6bc3c8d5e229b70c3cdf9998d32ec2
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ImportExportDialogFragment.java