Commit Graph
141 Commits
Author SHA1 Message Date
LineageOS Infra 1347bcf4df Automatic translation import
Change-Id: I8d7f968c156b952340346dc0edb72d7c8ee5c326
2025-09-24 20:06:46 +00:00
Michael W 8af12822f8 Messaging: Remove setHost() logic
* This relies too much on call order and other things to go right
* We can use the activity just fine for it

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8623
Change-Id: I048910258cedaa21e26fb88a57e5028ae1df9f83
2025-05-18 09:18:48 +00:00
Michael W 6161d0fca1 Messaging: Get rid of everything around the local apn database
Change-Id: Ie1916e93b274009494e76d6d99f36a025139127d
2025-05-18 09:18:48 +00:00
Michael W aad904a01b Messaging: Use Start and End instead of Left and Right
That way we don't need a separate file for these styles anymore

Change-Id: If689fba727f9b678b628c7bfb51fa8e4474d68de
2025-05-18 09:18:48 +00:00
Michael W f0b25f0760 Messaging: Remove unused resources
Change-Id: Id3e69fae5773ac49f16b34d428218c3ce12cbe4b
2025-05-18 09:18:48 +00:00
Michael W 7acbc6a9ca Messaging: No need to access private color members
These are public and thus we don't need "@*"

Change-Id: Iaddafed125c14e21750871c7a07abd1c4c03aee4
2025-05-18 09:18:48 +00:00
LineageOS Infra 8d8c36708a Automatic translation import
Change-Id: Ib6f00a18f614b5fac8e31cf24f456f031251037a
2025-05-15 12:56:02 +00:00
LineageOS Infra 7120148897 Automatic translation import
Change-Id: Ie633b3f57231e2eb6d13101c5316099994aa81fd
2025-05-01 16:33:24 +00:00
LineageOS Infra b3f84ba453 Automatic translation import
Change-Id: I7b72f43ef1d430cb4aff5e8fb1fae81581532032
2025-04-15 13:55:29 +00:00
LineageOS Infra 0c2fc16c8b Automatic translation import
Change-Id: Ieef595ad3118084c77d6dc09dc5b4dc78fd450bc
2025-04-07 16:25:32 +00:00
Michael W a39f270385 Messaging: Fix wrong thumb tint
forceDarkAllowed once again messes with proper styling

Change-Id: I1d59477ae4dbd7d081787f90eab633027b575bf3
2025-03-11 22:41:22 +01:00
Michael W 37f7aaea87 Messaging: Fix wrong enum value
* Apparently in QPR2, Material Design specifies iconSize which is set
  as a dimension (18dp) and overwrites ours which is an enum
* Fix it by choosing a unique name for the styleable

Change-Id: I0e9f93dc5bf8d450ea987f3b1fde9641827f2f99
2025-03-06 20:42:27 +01:00
Michael W 162c78fe1a Messaging: Replace fragment with FragmentContainerView
* Following recommendation of AS
* Also add the missing newlines at the end - they should be there and a
  separate change doesn't make sense

Change-Id: I90ce1574910275458f51a151c8dcd6da49433504
2025-03-04 18:52:05 +01:00
LineageOS Infra 94c0b8734b Automatic translation import
Change-Id: Ic10cf8ae6574bba350e8d12b0e217501e81cdc14
2025-03-01 17:50:25 +00: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
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
LineageOS Infra c3f90af163 Automatic translation import
Change-Id: Iae84ceffae7e3b10f58ad14dc7d2730783fd8bb3
2025-01-15 20:54:54 +00: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 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 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 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 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 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 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 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 e29b158fba Messaging: Remove unused code
Change-Id: I8093bb3e305ae323f7069bf42f9e83f8c8647cc7
2024-12-26 15:54:37 +01:00
Michael W 2a09fa3cb9 Messaging: Fix indicated issues in layouts
Follow AS recommendations

Change-Id: I7a5241651ccd3fd5ea5efce44db848e3bc3a1c12
2024-12-26 15:54:37 +01:00
Michael W 5ed268cee1 Messaging: Style the SwitchPreferences
Use the newer style of A15

Change-Id: I75a0e54f70f837d21d3aaa746f2e0ec7af226eda
2024-12-26 15:54:35 +01:00
Michael W a2f67b4f7b Messaging: Remove GServices
We don't have an actual implementation returning anything but the
defaults, so apply the defaults directly anywhere we need them

Change-Id: Ic651b4b13977799f2f4d2c702c430798fbff77f8
2024-12-26 14:55:12 +01:00
Michael W 7f22a3eea7 Messaging: Remove low storage handling
* SMS are the least of your storage issues, if you reach the limit
* Both Intent.ACTION_DEVICE_STORAGE_LOW and
  Intent.ACTION_DEVICE_STORAGE_LOW are not delivered to apps after O
* Remove all now unused strings from all languages - we don't sync those
  with crowdin (yet)

Change-Id: If01f937acdafbb34d5a9e792db54de4761ec4cc5
2024-12-26 14:55:12 +01:00
Michael W 101b31e873 Messaging: Remove unused resources
Change-Id: I2155df1ee077be150ca5140dd225409b019506a4
2024-12-26 14:55:12 +01:00
Michael W d869533f6f Messaging: Use xml drawables
Replace the pngs with xml drawables

Change-Id: I71be32c36194d3b34b54287a09789f73087600ef
2024-12-26 14:55:12 +01:00
Michael W 4ecf5bc70a Messaging: Fix wrong icons
Somehow these two archive icons were actually download and forward icons

Change-Id: I61e644005067caae1f2a0661cd07e93692fdb58d
2024-12-26 14:55:12 +01:00
Michael W 7c55a6d56a Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
2024-12-26 14:55:12 +01:00
Michael W 9bbc7a8f99 Messaging: Fix file permissions
No need to be executable

Change-Id: I71d4c03eed558a15489f71fa9ac69d42bdcef474
2024-12-26 14:55:12 +01:00
Michael W 009df43b06 Messaging: Remove cell broadcasts
* Packagemanager doesn't tell us about its' availability anymore
* It's accessible from notification settings, no need for the app to
  be able to launch them

Change-Id: I10b7742917f8639c94b0187f158cc30156f90e92
2024-12-26 14:55:12 +01:00
Michael W 6a10100821 Messaging: Properly style dialogs
Forwarding messages
Before: Dialog is white and rectangular
After: Dialog is rounded and dark theme has dark background

Settings->Advanced->My phone number
Before: Dialog is white and rectangular
After: Dialog is rounded and dark theme has dark background

Change-Id: I719b15cbe062899b4f5eaccd599eaf45e89dfd3d
2024-12-26 14:55:12 +01:00
Michael W f3863c9a39 Messaging: Remove tests
Nobody runs them anyway

Change-Id: I2b07847509269af31430abc6cb0fb190f08d45f9
2024-12-26 14:55:00 +01:00
minarypenguin 5ce3a1b2db Messaging: Fix activity bar menu icons tint
Change-Id: Ife5af067eb39a3a75e67fd0d7241f4b2e13e23a6
2024-12-22 17:04:27 +01:00
Michael Bestas eace932850 Messaging: Remove navigation bar divider
Change-Id: I4194546dd26498cea1859bdda62f4297078fe7bb
2024-12-22 17:04:27 +01:00
DarkJoker360 6e71ff0015 Messaging: Use light icons on conversations select menu
Change-Id: I48fa0e707494bf393a2c671dbca7a3a53af2411a
2024-12-22 17:04:27 +01:00
LineageOS Infra 0895e556a0 Automatic translation import
Change-Id: I1b6e7f31c6505430b6d2487cfaecab1194318b8d
2024-12-16 06:30:06 +00:00
LineageOS Infra 23527d71dd Automatic translation import
Change-Id: Ie0783ccfff42ca31fe8410838ad81c7c39cc8266
2024-11-16 06:48:15 +00:00
LineageOS Infra 2663c4e772 Automatic translation import
Change-Id: Iddf33bd588de30c83b7ee8c6b64129099d1132da
2024-10-31 17:49:38 +00:00