summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Messaging: Require external legacy storagelineage-17.1Han Wang2020-06-131-0/+1
| | | | | | | | Since the recent API bump, when trying to attach images from the built-in picker, all images are shown blank due to an EACCES permission error. Change-Id: I0a7c581300879a43f251b2e6279a1c9c11ca79eb
* Import translations. DO NOT MERGEBill Yi2020-05-2477-1078/+1078
| | | | | | | | | BUG:148403740 TEST: m messaging Change-Id: I4b74a267c0ed7cffe04d97ca465f2aa90ae1847a Auto-generated-cl: translation import
* Rescheduling pending messages after outside window failureTaesu Lee2020-05-245-14/+24
| | | | | | | | | | | | | | | No more rescheduling for pending messages after DownloadMmsAction is failed caused by outside window. Any pending download messages will be remained as the DOWNLOADING state without actual downloading operations and sending a DEFERRED M-NotifyResp.ind even. It will reschedule pending messages whenever sending or downloading is failed including outside window failure case. And it also removes dup scheduling and fix some typo. Test: Manual Change-Id: Ie37088347c69f25d838875830fc65ce7727fefe6 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix NPE on MultiConversationNotificationStateTaesu Lee2020-05-241-5/+7
| | | | | | | | | | | | | Use the most recent notification's state to print out log because mContent is null in case of a notification for multiple messages in at least 2 different conversations. And no need sanitizePII() since this log is only for VERBOSE already. Test: 1) adb shell setprop log.tag.MessagingAppNotif VERBOSE 2) Receive SMS from different senders Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Ie300620f0014577ca65b9a7e3a4c397a39717992
* Hide APN prefs if platform APIs are usedTaesu Lee2020-05-242-14/+26
| | | | | | | | | | The APN prefs is available if legacy APIs are used with local APN db only. Test: Manual Change-Id: I5883dcb2c406acc601787edd02e0d3272732e6d7 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Use ic_add_white for consistency insteadTaesu Lee2020-05-241-1/+1
| | | | | | | Test: Check "New APN" icon in ApnSettingsActivity. Change-Id: I0fc29384e0714a780842652178e3e88ff311456a Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix to show APN prefs correctlyTaesu Lee2020-05-242-12/+4
| | | | | | | Test: Settings -> Advanced -> Access Point Names Change-Id: Ia3ad443ac056a877abd6cd258c2219d8ee6ff181 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix NPETaesu Lee2020-05-241-1/+3
| | | | | | | | | | Check whether SMS delivery report preference is available first because it could be removed if carriers don't support it. Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I9e0049dd61713f7a9638fb19a37aaa261f35d768
* Handle delivered messages as completed messagesTaesu Lee2020-05-243-3/+7
| | | | | | | | | | Delivered messages could be forwarded and sent time can be shown on MessageDetailsDialog. Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I6e24bdfe6a037ab588914327dbd8abf3f30512ea
* Messaging: Contact ColorsBlaise2020-05-245-10/+52
| | | | | | | Adds the option to use individual colors for contacts. Matches the colors used in Contacts. Change-Id: I9f222308a900c5d47ec16f83232bd7f6d9af6cd7
* Messaging: disable auto dark theming on message bubbleJesse Chan2020-05-181-1/+2
| | | | | Change-Id: I7f90b5642712d222df4ad1b1e0143a61e76b90ca Signed-off-by: Jesse Chan <jc@lineageos.org>
* Messaging: allow framework to do dark theming automaticallyJesse Chan2020-05-181-0/+1
| | | | Change-Id: Ia213448239b279b9b4bd753e32b01956f0f9691f
* Messaging: bump target SDK version to 29Jesse Chan2020-05-182-2/+2
| | | | Change-Id: I2067146755ddc73c0ac31cf2096d17adbd98d071
* Messaging: Fix sysconfig whitelist filenameMichael Bestas2020-05-151-3/+3
| | | | Change-Id: I37fe525d72dc6221dde8a536fd09a45913207164
* Messaging: Add sysconfig whitelist xmlMichael Bestas2020-05-102-0/+30
| | | | Change-Id: I2665ac3be3bb63daeaa0e5c109b73ca6152b95ce
* Automatic translation importMichael Bestas2020-04-2372-421/+136
| | | | Change-Id: I76d239708da9834fcb9c846605d8d2c237859efd
* Merge "Automatic translation import" into lineage-17.1Michael Bestas2020-04-033-17/+0
|\
| * Automatic translation importMichael Bestas2020-03-303-17/+0
| | | | | | | | Change-Id: Idf8653cf57c580e4caaa2ab517fe636ea910bd8e
* | Dismiss SnackBar when detachedTaesu Lee2020-04-011-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | SnackBarManager state is not cleared when SnackBar is detached from a window without dismiss(). After then it is remained as dismissing state forever. Test: 1) Long-press a conversation and click archive action. 2) Press back key before the snackbar is dismissed. 3) Repeat 1) and check the snackbar is shown or not. Change-Id: Icf2cdcd30aea42685db68e5ac36436a34c9c94ae Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* | Fix assert fail during onSaveInstanceState()Taesu Lee2020-03-311-3/+15
|/ | | | | | | | | | | | | | | | | | | Selected attachment from GalleryGridView will be destroyed when same attachment is already existed in DraftMessageData. It will make assert fail during onSaveInstanceState() because mDestroyed in MessagePartData is true already. It destroys existing attachment and replaces with new attachment instead so that selected attachments could be maintained correctly. Test: 1) Select one image in GalleryMediaChooser. 2) Reopen the chooser and long-press same image again to enter to the multi-selection mode. 3) Long-press the attachment on draft message to open AttachmentChooser. 4) Check Assert fail. Change-Id: I029d778779260d0097ce30bf5338fceba05e1f77 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Messaging: Show quick reply choices only on wearable devicesHan Wang2020-03-171-3/+4
| | | | Change-Id: I4b81643c051a9b1377f2046c1aa0515c590736fc
* Fix WindowLeaked issue on AttachmentPreviewTaesu Lee2020-03-162-3/+20
| | | | | | | | | | | Stop attaching animation before removal attachment views and hiding the AttachmentPreview. Test: Long-press to attach a media from GalleryGridView and uncheck the media to detach immediately. Change-Id: Ia1014609c056c9f35e428f8968b58dc2c1b704f9 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix undesirable ripple effect on GalleryGridViewTaesu Lee2020-03-161-0/+1
| | | | | | | | | | Set focusableInTouchMode = ture for workaround. Test: Long-press a media and release it on GalleryGridView, check whether there is any undesirable ripple effect or not. Change-Id: I076c47338d11b396210648a68ae393761d334c03 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* New interface to pick a contact as attachmentTaesu Lee2020-03-1613-46/+296
| | | | | | | | | | New ContactMediaChooser allows the user to pick a contact from contacts apps as attachment. Test: Manual Change-Id: Idb00cd8a3164a3cac859947affd5cbcc7e41b8c2 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* ProcessPendingMessagesAction works based on subscriptionsTaesu Lee2020-03-1621-462/+272
| | | | | | | | | | | | | | | PorcessPendingMessagesAction queues one message for sending/downloading associated with a subscription triggering current action at a time. And the ConnectivityUtil also works based on subscriptions so that pending messages can be processed regardless of other phones' state in multi-sim case. It includes cleanup code as well. Test: Manual Change-Id: Id6b4f4a0aa6a3291e7a4d8a5d3f0fbb9db3c5b86 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Allow intent shared subject or title to be mms subjectMarco Sirabella2020-03-162-5/+17
| | | | | Test: m, manual Change-Id: Ibb5eba030320467774cdac1d502ec36c98abcb43
* Update runner to AndroidJUnittestJulien Desprez2020-03-161-1/+1
| | | | | | | | | There is no reason to use the base class for instrumentations. Test: Make Bug: 150008527 Change-Id: I1e5ec7a4edb8b764deb006e95ca4fd55b9127606
* Support audio attachments through GalleryMediaChooserTaesu Lee2020-03-169-71/+188
| | | | | | | | | | GalleryMediaChooser supports audio types also. It displays simple audio icon and file info for audio files on grid views. Test: Manual Change-Id: I98b605156af3c1909c0141a2b99380b5da11c1e2 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Support video attachments through GalleryMediaChooserTaesu Lee2020-03-1620-99/+131
| | | | | | | | | | | | | | | | GalleryMediaChooser supports video types and more image types also. And video thumbnails are overlaid with the play button image to distinguish between images and videos. Note: 1. EXTRA_ALLOW_MULTIPLE is not specified for ACTION_GET_CONTENT. 2. Files, methods and variables' name are still including "image". 3. Content descriptions are not updated. Test: Manual Change-Id: I961928f150e4ae8ee80a1fba2f20c37fb5426669 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Show attachments size during composing MMSTaesu Lee2020-03-166-37/+92
| | | | | | | | | | It shows attachments size during composing MMS. Note: Images could be resized before sending. Test: Manual Change-Id: I63eafe0d57259a7742ab839c4d96d595675e70e9 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Do not show the fail icon for a group conversationTaesu Lee2020-03-161-4/+3
| | | | | | | Test: Check an widget Change-Id: Ie1ea35e0bd36891abf8b476b5409a99fa439a1b6 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Actual attachments size is the minimum size except imagesTaesu Lee2020-03-161-10/+2
| | | | | | | | | | Only images can be compressed before sending. Actual size got from a content uri is used for computing the minimum size for others. Test: Manual Change-Id: Id8d6ec24f80fe0eae70b6b1686ca7b199c70e313 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Allow acceptable media types only for sharingTaesu Lee2020-03-162-2/+7
| | | | | | | Test: Manual Change-Id: I20d5f8abf2ba7b7b620aa2a4ec1e0a43091f98c2 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Support sharing with image/video/audio/vcard and text fullyTaesu Lee2020-03-162-40/+94
| | | | | | | | | | ACTION_SEND and ACTION_SEND_MULTIPLE support image, video, audio, text and vcard files. Test: Manual Change-Id: I1c08070f89877140aba9087717bb663ee2990467 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Revert "Messaging: Implement saved video attachments in MMS"Luca Stefani2020-03-165-91/+12
| | | | | | This reverts commit 34bda0bc79f45c6596b427d2c8e34e7991fc7e15. Change-Id: Ifa36d21e90606c943bccd96f49acbfeed0bca7a5
* Revert "Added support for video and audio mms attachments"Luca Stefani2020-03-1626-1238/+12
| | | | | | This reverts commit 5c01caa0153112ccce48a16aec930c1afe6a3447. Change-Id: I534e63c431743ad5257b748352637ca0e735bb24
* Revert "Fixed storage permission issue for attachments"Luca Stefani2020-03-163-9/+3
| | | | | | This reverts commit 2f0f7aee6432f475e84bb4873e7777542757645e. Change-Id: I4f697eae9d525f7c284dcfabb30ff0def07fb375
* Revert "Messaging: Don't crash on unsupported shared content type"Luca Stefani2020-03-161-10/+2
| | | | | | This reverts commit 7cc94cfded563a77912a084f2a105d6641107d7a. Change-Id: Id58e2dbed3330428f6e781aee7c3a6b41d4e7058
* Revert "Allow intent shared subject or title to be mms subject"Luca Stefani2020-03-162-14/+4
| | | | | | This reverts commit ae3064cfe0c99c501d7bc4e93f997613015f25ac. Change-Id: I68279b249950e4433c77a9defb9360f8e4a36953
* Messaging: Handle multiple participants in custom notificationsLyubo2020-02-271-1/+7
| | | | | | | | * Fixes: https://gitlab.com/LineageOS/issues/android/issues/695 * Sets the conversation title in 'conversation notifications settings' as a string of comma separated participants names Change-Id: If900fc4c84de0ac036ecf6b0c346bd9eaccb0916
* Fix android.os.strictmode.LeakedClosableViolationTaesu Lee2020-02-125-27/+57
| | | | | | | Test: Check log. Change-Id: I488fc6c4288bc3843a2be35a8e2988738441263e Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Register implicit broadcasts at runtime for updating widgetsTaesu Lee2020-02-122-45/+45
| | | | | | | | | | | It resolves Broadcast Limitations issue if target API level is changed as 26 or higher later. It includes fixing code style also. Test: Check messaging widgets' changes. Change-Id: I6e08027b1d6a5a19cfd17f8ec3e9a895dbb3c44a Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix to show PersonItemView for TYPE_CHOOSER_GRID correctlyTaesu Lee2020-02-121-2/+2
| | | | | | | | | Use match_parent instead. Test: Check grid views for a vcard on AttachmentChooserFragment. Change-Id: I60acc77d9c0cd9608187d86f71fc4d2c7e78afb7 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix covering issue for video thumbnails on widget viewTaesu Lee2020-02-122-2/+2
| | | | | | | | | | Use ic_video_play_light.png having background transparent to show the video thumbnails correctly. Test: Check a widget for conversations including a video attachment. Change-Id: I1333a3be41e53ce7e8ad1a64849e726c73cda153 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix wrong margin on widget conversation viewTaesu Lee2020-02-121-1/+1
| | | | | | | | | | Change layout_marginTop as -2dp to enclose message_list between top_line and bottom_line. Test: Check a widget for conversations. Change-Id: I097303134e8ea079de39ac18746a51e1937b92c3 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Use file extension based on MIME typeTaesu Lee2020-02-073-13/+23
| | | | | | | | | It uses the most common extension for the given MIME type. Test: Manual Change-Id: I3d4aea85fcd42088ed19898054db7225954d3401 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix showing wrong image on document picker itemTaesu Lee2020-02-071-0/+2
| | | | | | | | | | Set mDetachedRequestDescriptor as null for document picker to prevent calling setImageResourceId() in onAttachedToWindow(). Test: Manual Change-Id: Ied5ca200cac350ef4b2420269763dfc240fc97c4 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix NPE caused by invalid IFD0 offsetTaesu Lee2020-02-071-3/+5
| | | | | | | | | | NPE occurs when current IFD0 offset is smaller than default IFD offset. Just skip invalid tag instead. Test: Manual Change-Id: I184794e7ee227849da7d2ecf3cf647e69dc91610 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Automatic translation importMichael Bestas2020-01-2773-0/+3267
| | | | Change-Id: Id66bd1765f20983077b1be7bd0845efb1c90deac
* Messaging: Notification channel string fixesstaging/lineage-17.0_merge-android-10.0.0_r9Michael Bestas2019-12-1179-80/+80
| | | | | | | * Convert AOSP translations for renamed string * Move new string so we can translate it Change-Id: I4da7137e77f8a88196c94b2b98107ead1efabd65