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
This commit is contained in:
@@ -18,24 +18,10 @@
|
||||
<!-- Preference screen definition for Bugle's application-wide settings -->
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- KLP+ only -->
|
||||
<PreferenceScreen
|
||||
android:key="@string/sms_disabled_pref_key"
|
||||
android:title="@string/sms_disabled_pref_title"
|
||||
android:persistent="false">
|
||||
<intent
|
||||
android:action="android.provider.Telephony.ACTION_CHANGE_DEFAULT">
|
||||
<extra android:name="package" android:value="com.android.messaging" />
|
||||
</intent>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen
|
||||
<Preference
|
||||
android:key="@string/sms_enabled_pref_key"
|
||||
android:title="@string/sms_enabled_pref_title"
|
||||
android:persistent="false">
|
||||
<intent
|
||||
android:action="android.provider.Telephony.ACTION_CHANGE_DEFAULT">
|
||||
</intent>
|
||||
</PreferenceScreen>
|
||||
android:persistent="false" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/send_sound_pref_key"
|
||||
|
||||
Reference in New Issue
Block a user