* 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
No unnecessary boxing, enhanced for loops, redundant checks and throws,
imports (removal, reordering), possible void returns
Change-Id: I7a8e1b2007e3b0906e01b41785c518d02c2f3fab
Instead of handling showing and picking the media ourselves,
use existing AcitivityResultContracts to pick images, videos
or contacts
Change-Id: I20079ad94882cc6bbfeae8d57ca0e4aa30612c01
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
Since Q, contacts affinity isn't supported anymore, as reflected by
the documentation plus DataUsageStatUpdater code itself
Change-Id: I35e00d0fa743525c3b977c9756126ae764726afa
* They need the theme provided now
* Follow the suggestion by AS
(sometimes we use ResourcesCompat, sometimes not)
Change-Id: Ie3023fee13a6fc04bd4b912721ba19dcc08befba
We don't have an actual implementation returning anything but the
defaults, so apply the defaults directly anywhere we need them
Change-Id: Ic651b4b13977799f2f4d2c702c430798fbff77f8
* 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
* Someone apparently decided to "Replace-In-Files" these before, but
they are not correct according to the folder structure
* Since it is just annoying to read the code in AS when it does not
match the folder, change the package name back
Change-Id: Iea5c51aeb9e1f5b650a1009348065c7c38cddbeb
* 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
* Since we already compile with sdk "current", this is just the next
logical step
* We skip 35 for now since edge-to-edge stuff can be done later
* It also gives AS the possibility to recognize necessary steps
* WRITE_SMS permission removed in API 23
Change-Id: Ia567fa9e42772f0b6d6e6fdc0d21b5635ff9dcc5
A vcf file can alias to both "text/vCard" and "text/x-vCard" MIME
types and an ics file can alias to "text/vCalendar" as well as
"text/x-vCalendar". However, if LineageOS does not get the "x-"
MIME type, it will incorrectly display an empty MMS.
Change-Id: I0b63767092c0e7422ff3592983d94b903d9e8cc5
Use RoleManager to Launch the correct activity and check the default app
Get rid of deprecated methods used here to do the same
Also add queries in manifest to allow the former method to work as well
Change-Id: I4702aaa4b35a994e225e63534da8fb4975b9717a
* Currently there is a check in place checking for the presence of a
preferred sim card
* For deletion of a conversation and message this is unnecessary and
deleting a conversation from the main view does also not have that check
already, so replace the check with just checking for being the default
messaging app
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/5974
Test: Try deleting a single message or conversation from within
conversation before and after
Change-Id: Icd47882eb29e16a17ad57a79ea5e0c0f7855ffc6
* Due to the sections not working anymore since we removed the duplicate
numbers, we are left with a rather large empty space left of the
contacts
* Disable sectioning to make it look properly again
Change-Id: Iff1849b80d70269933708e5440809c657f0d70d9
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.messaging/com.android.messaging.ui.SmsStorageLowWarningActivity}: java.lang.IllegalStateException: Fragment com.android.messaging.ui.SmsStorageLowWarningFragment$ChooseActionDialogFragment must be a public static class to be properly recreated from instance state.
Change-Id: I78d46a6f74383a4b865759bc980240f6f73ff20d
onAttachFragment in ForwardMessageActivity does not necessarily have
to be provided with a ConversationListFragment, so there is no need to
assert this. Just move along, as is done in VCardDetailActivity, etc.
Change-Id: I41825c9c118d71d447b820d29f60fb10ef2d5fdf
* Removing the arrow from the message bubbles and adding a little
rounding to them and the input bar already does a lot in
modernizing the look of the app
Change-Id: Ia6466968553856fdf2ea15c10cfed79402e36a5d
* Somehow there are multiple entries per some numbers, sometimes stored
with, sometimes without spaces and/or invisible characters
* This leads to the same number being shown multiple times
* Don't add those entries by comparing number and type of all
already added entries with the staging one
Change-Id: Ic815393d3d4f4ba56107f42c9d8940309564554c
As part of mainline effort, AOSP cellbroadcast package name was changed
from com.android.cellbroadcast to com.android.cellbroadcast.module
Change-Id: Ie1f27abb0f645dd53c26d164b03c5e93c3c13cdc