Commit Graph
1487 Commits
Author SHA1 Message Date
Treehugger Robot cf93bb5c3d Merge "packages/apps/Messaging: remove deprecated Mockito usages" into main 2025-02-26 09:09:41 -08:00
Owner Cleanup Bot a7f581e01b [owners] Remove rtenneti@google.com from OWNERS am: cc819dae0b am: 5d53470df3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3505964

Change-Id: I9c9d6cf6d32b0df880905469ea7b98f5dc4aa0d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-25 16:11:45 -08:00
Owner Cleanup Bot 5d53470df3 [owners] Remove rtenneti@google.com from OWNERS am: cc819dae0b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3505964

Change-Id: Ibc4ee28788e023d707884cddec42e0edb2d9ddbb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-25 15:36:18 -08:00
Owner Cleanup Bot cc819dae0b [owners] Remove rtenneti@google.com from OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.

Please approve this change and vote the highest CR. This will keep the OWNERs
file tidy.  We ask that you do not ignore this change and approve it
unless you know a reason the OWNER should remain.  It can always be
reverted if needed.

If this change is in error, vote the lowest CR value (i.e. reject the CL)
and the bot will abandon it.

See the owner's recent review activity for context:
https://android-review.googlesource.com/q/rtenneti@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: I4b84a77bf8a7bd01b8d58315021ea2249a6f539e
2025-02-25 09:31:37 -08:00
Adrian Roos 29980d714f packages/apps/Messaging: remove deprecated Mockito usages
Test: m checkbuild
Flag: TEST_ONLY
Change-Id: I9e62dd82bfbf00b13dce8210574bf146eea191f0
2025-02-25 16:51:18 +01:00
LineageOS Infra ff479f4ca4 Automatic translation import
Change-Id: Iee2fccd125915894e7891247a681042d9c7556b2
2025-02-15 15:47:26 +00:00
LineageOS Infra ee1c105fc1 Automatic translation import
Change-Id: Ie67d6cb6fda6a1c232a8bbd30cf58e25697e01db
2025-02-01 14:28:41 +00:00
Android Build Coastguard Worker 8900099676 Snap for 12991197 from 49c3d392ad to 25Q2-release
Change-Id: I35c42e11115b922f2b21949b12a5094e454c097e
2025-01-30 16:18:04 -08:00
Christoffer Adamsen 49c3d392ad Do not keep runtime invisible annotations in proguard.flags am: b0f8c82e37 am: 817de4cf62
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3455602

Change-Id: I874a545cfde2310b4714879d1d001c3c4f47737d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-30 11:13:31 -08:00
Christoffer Adamsen 817de4cf62 Do not keep runtime invisible annotations in proguard.flags am: b0f8c82e37
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3455602

Change-Id: I5c7bcb5fbf8a125fa2993f1da79c6e2ae50ba623
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-30 10:49:58 -08:00
Michael W 3b720fb586 Messaging: Move "Start chat" string to cm_strings.xml
* We don't have strings.xml in the translation pipe yet so move it to
  our own strings instead
* Add an explainer comment as well

Change-Id: I392837e194c7c5d5b4b44d5cbba2ef2f521857ed
2025-01-20 21:56:38 +01:00
LuK1337 28b9c1d2cd Messaging: Make SMS delivered and MMS sent intents mutable
Fixes MMS send status and SMS delivery reports.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8074
Change-Id: I55b98619ed2d477dcc232ebdaa23b5390b7570b2
2025-01-19 17:58:59 +01:00
Christoffer Adamsen b0f8c82e37 Do not keep runtime invisible annotations in proguard.flags
This updates the corresponding Android.bp file to keep the runtime invisible annotations, meaning this should be a no-op.

When RELEASE_R8_ONLY_RUNTIME_VISIBLE_ANNOTATIONS is enabled, keep_runtime_invisible_annotations will become a no-op, which should lead to all runtime invisible annotations being stripped from this build.

Bug: 387958004
Change-Id: Ib0090cd30d44630a1b0a1d1f0605edb7fef8c5cf
Test: existing
2025-01-17 04:34:59 -08:00
LineageOS Infra c3f90af163 Automatic translation import
Change-Id: Iae84ceffae7e3b10f58ad14dc7d2730783fd8bb3
2025-01-15 20:54:54 +00:00
Android Build Coastguard Worker 81920e8179 Snap for 12896565 from 3e8c4c36c6 to 25Q2-release
Change-Id: I92020d203fe787ccbf0735f50dc4efa223506327
2025-01-09 18:17:44 -08:00
Christoffer Adamsen 3e8c4c36c6 Explicitly keep default constructor in rules without members am: 96af708145 am: e891b3615d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3438699

Change-Id: I0d9ba3367e893f5299436eb3c12ad4e86f96cc78
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-09 05:30:12 -08:00
Christoffer Adamsen e891b3615d Explicitly keep default constructor in rules without members am: 96af708145
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3438699

Change-Id: Ic7a716a9384ebc40499b03980fe3317ad6e741c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-09 05:04:04 -08:00
Christoffer Adamsen 96af708145 Explicitly keep default constructor in rules without members
R8 implicitly keeps the default constructor when no member rules are specified. Future versions of R8 will require apps to explicitly keep the default constructors that are required for the build to work.

This conservatively changes all keep rules that currently keep the default constructor to explicitly keep the default constructor.

Future work will attempt to tighten up the rules that do not require the default constructor to be kept.

Bug: 373579455
Test: existing
Change-Id: I46dc4b01c0ee38a7033d8f16419dac00fe414fb1
2025-01-08 00:04:06 -08:00
Michael W 278c7e93af Messaging: Hide new chat button when forwarding messages
Change-Id: I511c9745c02bc7918bb38647bd6fb79332cfe523
2025-01-01 18:56:09 +01:00
Michael W 66d57e98a3 Messaging: Handle geo uri scheme
Change-Id: I19f1039d18441cb2bd013577c41e279327f806e6
2025-01-01 18:56:09 +01:00
Michael W 7f639e3652 Messaging: Use MaterialComponents everywhere instead of AppCompat
* This is the proper thing to do
* Also fixes crash when forwarding a message

Change-Id: Ib3f34477cc9b76b1979f9e6f2f39e0f9222c16ee
2025-01-01 13:12:32 +01:00
Michael W b50c51d38f Messaging: Remove forgotten MmsVideoRecorder
Usages removed when removing the own camera handling in commit 7f464b4

Change-Id: I7904a5079e733331c9cfc780ff21bdda8bdb9455
2024-12-26 23:54:02 +01:00
Michael W 6cdd458b69 Messaging: Tint recipient field properly
We need to tint the underline ourselves, reyling on forceDarkAllowed
does nothing here

Change-Id: I2c390a76df5aef6e16512295521d073dbe25d5fc
2024-12-26 17:43:06 +01:00
Michael W 8ae38097b0 Messaging: Style ViewPagerTabStrip's underline properly
White will be black on dark theme -> we want white there as well

Change-Id: I7ca3b3b39ea6acc1069878bb2df98ccb269fb7dc
2024-12-26 17:31:30 +01:00
Michael W edb268697c Messaging: Get rid of storage permissions
Since these have no effect on sdk 33 and up and everything works without
them we can get rid of those

Change-Id: I0482d8b8772dc2c64bb1930fbc6ba4852f4b4c61
2024-12-26 16:13:52 +01:00
Michael W 161c3e9fd9 Messaging: Remove VisibleForTesting
Since we removed all tests, no need to keep those flags around either

Change-Id: Icaf71832c459cecbcbddc75f552c60e48ae95189
2024-12-26 15:54:38 +01:00
Michael W bbf90339d2 Messaging: Style the subject line properly
It needs it's own dark-theme color and a bigger border radius

Change-Id: I4f8e3dfec07653332106b8535c7431402833f159
2024-12-26 15:54:38 +01:00
Michael W e11745afd4 Messaging: Style the attachment choosers properly
On light background they stand out lighter, but on dark they just blend
in - we can reuse the attachment background to fix that!

Change-Id: I0e0f09d0cd305ce1bc8aa07c3a20b79993d40e60
2024-12-26 15:54:38 +01:00
Michael W 3788b9d318 Messaging: Style the attachments properly
* With dark theme, they suddenly don't stand out from the background
  anymore
* Give them more rounding but not as much as the chat bubbles

Change-Id: I32c1036bda348e0c58e1cb37edbe9c7fc72309e7
2024-12-26 15:54:37 +01:00
Michael W 6e9a803f1c Messaging: Handle default SMS app setting properly
* We don't need two settings basically doing the same
* Handling the change needs to happen via RoleIntent, not
  ACTION_CHANGE_DEFAULT
* Our own name sometimes can't be retrieved from package manager (?) -
  just use it from strings

Change-Id: I28abc52329f00b33a316533f12a54a517cba3514
2024-12-26 15:54:37 +01:00
Michael W 241b4cf833 Messaging: Style even more dialogs properly
Somehow some dialogs use the theme but some need the style set manually

Change-Id: I386a0e43c10d328088066961b75a162bf2c351c1
2024-12-26 15:54:37 +01:00
Michael W 0aa08c0c3b Messaging: Finish after no more contacts are blocked
The view doesn't have a "no items available" element and it doesn't
make sense to have one since the menu item is only visible once a contact
is blocked - so after removing the last blocked contact, simply return
back to the conversation list

Change-Id: I3372e26361f6919502cac6fd27ae849d559a4c05
2024-12-26 15:54:37 +01:00
Michael W e5eb059fbd Messaging: Rename in german
Messaging is not translated "SMS/MMS", use the proper word "Nachrichten"

Change-Id: I7b5a42598e4eca1162a806d9634fa7cb793f62da
2024-12-26 15:54:37 +01:00
Michael W 68a3707173 Messaging: Get rid of deprecated PhoneStateListener
TelephonyCallback is the new thing to use

Change-Id: I3c44210bfc02814af5d4110f507b94d0f0e8a4a0
2024-12-26 15:54:37 +01:00
Michael W 590243f8a8 Messaging: ContactMediaChooser: Remove permission requesting
We never reach this state when we remove the permission, so it makes
no sense to have code for it

Change-Id: I97f2f5d438148234ea1887462ab65735721da2f8
2024-12-26 15:54:37 +01:00
Michael W c73fdc5064 Messaging: Replace permission requests with launchers
Change-Id: I0d12fd05fb0abaeb9bd64c8c77e0e776d5459e4d
2024-12-26 15:54:37 +01:00
Michael W 7f464b401c Messaging: Replace own camera handling with pickers
We do not need to handle camera on our own - there are apps out there
that are made for that!

Change-Id: Ifeb70e46b17bff5eb8d85c8775589efac4f2c284
2024-12-26 15:54:37 +01:00
Michael W 6cc0e38bb5 Messaging: Get rid of onActivityResult()
We are supposed to use ActivityResultLaunchers, so do it that way

Change-Id: I070ec485097c927877b3e0eb4699addc9b9df873
2024-12-26 15:54:37 +01:00
Michael W 06bb0cc0e0 Messaging: Auto-format the manifest
... and remove two redundant app_name labels

Change-Id: Iebcb0e73e63478b1909bea7fadf81bdd2695113f
2024-12-26 15:54:37 +01:00
Michael W d940ab74ad Messaging: Fix a few android related things
* NotificationBuilder.addPerson(String) -> .addPerson(Person)
* Wearableextenter.addPage deprecated without replacement
* Html.fromHtml(String) -> .fromHtml(String, int)
* Handlers need Loopers
* Resource-IDs are not final by default (if-else instead of switch-case)
* call super.onFinishInflate() in override of onFinishInflate()
* Configuration.locale -> configuration.getLocales().get(0)
* SimpleDateFormat needs localization as well
* AudioAttributes instead of setAudioStreamType()
* isDataEnabled() is a public method, no need for reflection anymore

Change-Id: Icd830768b86edca3e0b44f1edc6c57facc9f731a
2024-12-26 15:54:37 +01:00
Michael W e128bff457 Messaging: Language cleanup
No unnecessary boxing, enhanced for loops, redundant checks and throws,
imports (removal, reordering), possible void returns

Change-Id: I7a8e1b2007e3b0906e01b41785c518d02c2f3fab
2024-12-26 15:54:37 +01:00
Michael W e335f6bec8 Messaging: Use ActivityResultContracts for media and contacts
Instead of handling showing and picking the media ourselves,
use existing AcitivityResultContracts to pick images, videos
or contacts

Change-Id: I20079ad94882cc6bbfeae8d57ca0e4aa30612c01
2024-12-26 15:54:37 +01:00
Michael W 7f9087a49e Messaging: Properly hide and show FAB
When starting or stopping action mode, the FAB should hide and show again

Change-Id: I94b12cbd3190df90189dc02c39ac7db78d58d090
2024-12-26 15:54:37 +01:00
Michael W d4ac014a74 Messaging: Use an extended FAB
With proper color scheme and "Start chat" text

Change-Id: I320b169b2bec354db7b0ebc3e81149aaf575092f
2024-12-26 15:54:37 +01:00
Pranav Vashi 056cf5f79e Messaging: Fix navigation bar theming
Change-Id: I6a346063eb4420738561bd0ffe44cd5629f9f59f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-12-26 15:54:37 +01:00
Michael W b12a4f8a3a Messaging: Fix loader not auto-restarting
When suspending and resuming the app, somehow the loader returns
immediately after onResume() with onLoadFinished() but somehow has no
data left (data.moveToNext() returns false) which makes the conversation
close immediately.
Restarting the loader has the desired result: We can leave the app
temporarily and come back to the same conversation again

This also fixes adding a vcard attachment (since that temporarily
leaves the app)

Change-Id: Id52e55563a11474fa776323477aa900ca4be0bbe
2024-12-26 15:54:37 +01:00
Michael W 6d11a6658c Messaging: Fix C-style array declarations
Change-Id: Ie7381dc5280ab4d907000ef551df9ea80553ddb4
2024-12-26 15:54:37 +01:00
Michael W 5403d02b5d Messaging: Fix javadoc
Change-Id: Ia1b0a8fa9a5e74078a68a55ca1953b6f085521b1
2024-12-26 15:54:37 +01:00
Michael W e29b158fba Messaging: Remove unused code
Change-Id: I8093bb3e305ae323f7069bf42f9e83f8c8647cc7
2024-12-26 15:54:37 +01:00
Michael W 0069df879a Messaging: Replace explicit types
Change-Id: I2165b3dec73973a2a82d8b3c7c364b5f011e597d
2024-12-26 15:54:37 +01:00