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:
Michael W
2024-12-26 15:54:37 +01:00
parent 241b4cf833
commit 6e9a803f1c
83 changed files with 38 additions and 109 deletions
@@ -16,6 +16,8 @@
*/
package com.android.messaging.ui.conversationlist;
import static com.android.messaging.util.ChangeDefaultSmsAppHelper.REQUEST_SET_DEFAULT_SMS_APP;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
@@ -58,8 +60,6 @@ import java.util.List;
public abstract class AbstractConversationListActivity extends BugleActionBarActivity
implements ConversationListFragmentHost, MultiSelectActionModeCallback.Listener {
private static final int REQUEST_SET_DEFAULT_SMS_APP = 1;
protected ConversationListFragment mConversationListFragment;
private ChangeDefaultSmsAppHelper mChangeDefaultSmsAppHelper;