Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f420f95 authored by Brian Attwell's avatar Brian Attwell
Browse files

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
parent ad5f72da
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -682,6 +682,9 @@ a ren't members of any other group. [CHAR LIMIT=25] -->
    <!-- Action that shares visible contacts -->
    <!-- Action that shares visible contacts -->
    <string name="share_visible_contacts">Share visible contacts</string>
    <string name="share_visible_contacts">Share visible contacts</string>


    <!-- A framework exception (ie, transaction too large) can be thrown while attempting to share all visible contacts. If so, show this toast. -->
    <string name="share_visible_contacts_failure">Failed to share visible contacts.</string>

    <!-- Dialog title when selecting the bulk operation to perform from a list. [CHAR LIMIT=36] -->
    <!-- Dialog title when selecting the bulk operation to perform from a list. [CHAR LIMIT=36] -->
    <string name="dialog_import_export">Import/export contacts</string>
    <string name="dialog_import_export">Import/export contacts</string>