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
This commit is contained in:
Michael W
2024-12-26 14:55:12 +01:00
parent 7f22a3eea7
commit a2f67b4f7b
64 changed files with 91 additions and 3763 deletions
+1 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -57,5 +58,4 @@
<enum name="subcompact" value="2" />
</attr>
</declare-styleable>
<attr name="apnPreferenceStyle" format="reference" />
</resources>
+1 -9
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -45,21 +46,12 @@
<string name="wireless_alerts_key" translatable="false">buglesub_wireless_alerts_key</string>
<string name="apn_list_pref_key" translatable="false">buglesub_apn_list</string>
<!-- Debug preferences -->
<string name="debug_pref_key" translatable="false">debug_category</string>
<string name="dump_sms_pref_key" translatable="false">dump_sms</string>
<bool name="dump_sms_pref_default" translatable="false">false</bool>
<string name="dump_mms_pref_key" translatable="false">dump_mms</string>
<bool name="dump_mms_pref_default" translatable="false">false</bool>
<!-- SMS/MMS settings keys -->
<!--
TODO: Several of these are currently unused but are expected to be needed to
implement SMS/MMS delivery and basic settings. Once we have the core functionality in place
we should do a pass to remove any unused values here.
-->
<string name="sms_apns_key" translatable="false">sms_apns_key</string>
<string name="use_local_apn_pref_key" translatable="false">use_local_apn_pref_key</string>
<bool name="use_local_apn_pref_default" translatable="false">false</bool>
-44
View File
@@ -688,50 +688,6 @@
<!-- Label for new message button in share intent dialog -->
<string name="share_cancel">Cancel</string>
<!-- Screen title after user selects APNs setting option -->
<string name="apn_edit">Edit access point</string>
<!-- Edit access point label summary text when no value has been set -->
<string name="apn_not_set">Not set</string>
<!-- Edit access point labels: A label the user can give to the APN to allow him to differentiate it from the others -->
<string name="apn_name">Name</string>
<!-- Edit access point labels: -->
<string name="apn_mmsc">MMSC</string>
<!-- Edit access point labels: The proxy to use for MMS (multimedia messages)-->
<string name="apn_mms_proxy">MMS proxy</string>
<!-- Edit access point labels: The port on the proxy used for MMS-->
<string name="apn_mms_port">MMS port</string>
<!-- Edit access point labels: -->
<string name="apn_mcc">MCC</string>
<!-- Edit access point labels: -->
<string name="apn_mnc">MNC</string>
<!-- Edit access point screen menu option to delete this APN -->
<string name="menu_delete_apn">Delete APN</string>
<!-- APNs screen menu option to create a brand spanking new APN -->
<string name="menu_new_apn">New APN</string>
<!-- Edit access point screen menu option to save the user's changes for this APN to the persistent storage -->
<string name="menu_save_apn">Save</string>
<!-- Edit access point screen menu option to discard the user's changes for this APN -->
<string name="menu_discard_apn_change">Discard</string>
<!-- APN error dialog messages: -->
<string name="error_apn_name_empty">The Name field can\'t be empty.</string>
<!-- APN error dialog messages: -->
<string name="error_mcc_not3">MCC field must be 3 digits.</string>
<!-- APN error dialog messages: -->
<string name="error_mnc_not23">MNC field must be 2 or 3 digits.</string>
<!-- The message of dialog indicated restoring default APN settings in progress -->
<string name="restore_default_apn">Restoring default APN settings.</string>
<!-- APNs screen menu option to reset default APN settings -->
<string name="menu_restore_default_apn">Reset to default</string>
<!-- APNs screen toast message to inform reset default APN settings is completed -->
<string name="restore_default_apn_completed">Reset default APN settings completed.</string>
<!-- Name to assign to a Network Access Point that was saved without a name -->
<string name="untitled_apn">Untitled</string>
<!-- Title for Access Point Names settings -->
<string name="sms_apns_title">Access Point Names</string>
<!-- Title for Access Point Names settings activity -->
<string name="apn_settings">APNs</string>
<!-- Error message for users that aren't allowed to modify Access Point Names settings [CHAR LIMIT=none] -->
<string name="apn_settings_not_available">Access Point Name settings are not available for this user</string>
<!-- Alert dialog title to copy information displayed in dialog to system clipboard. -->
<string name="copy_to_clipboard_dialog_title">Copy to clipboard?</string>
<!-- Alert dialog accept to copy information displayed in dialog to system clipboard. -->
-10
View File
@@ -34,7 +34,6 @@
<item name="colorAccent">@color/lineage_accent</item>
<item name="android:textColorHighlight">@color/text_highlight_color</item>
<item name="actionBarStyle">@style/BugleActionBar</item>
<item name="apnPreferenceStyle">@style/ApnPreference</item>
<item name="alertDialogTheme">@style/AlertDialogTheme</item>
</style>
@@ -466,15 +465,6 @@
<item name="colorAccent">@color/search_view_text_cursor</item>
</style>
<style name="ApnPreference">
<item name="android:layout">@layout/apn_preference_layout</item>
</style>
<style name="ApnPreferenceLayoutStyle">
<item name="android:paddingStart">?android:attr/listPreferredItemPaddingStart</item>
<item name="android:paddingEnd">?android:attr/listPreferredItemPaddingEnd</item>
</style>
<style name="SettingsListItem">
<item name="android:textSize">@dimen/settings_list_text_size</item>
<item name="android:textColor">@color/settings_list_text_primary</item>