Messaging: Style even more dialogs properly
Somehow some dialogs use the theme but some need the style set manually Change-Id: I386a0e43c10d328088066961b75a162bf2c351c1
This commit is contained in:
@@ -48,7 +48,7 @@ public class GroupMmsSettingDialog {
|
||||
|
||||
private void show() {
|
||||
Assert.isNull(mDialog);
|
||||
mDialog = new AlertDialog.Builder(mContext)
|
||||
mDialog = new AlertDialog.Builder(mContext, R.style.AlertDialogTheme)
|
||||
.setView(createView())
|
||||
.setTitle(R.string.group_mms_pref_title)
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
|
||||
@@ -822,7 +822,7 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
||||
return true;
|
||||
} else if (itemId == R.id.action_delete) {
|
||||
if (isReadyForDeleteAction()) {
|
||||
new AlertDialog.Builder(getActivity())
|
||||
new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme)
|
||||
.setTitle(getResources().getQuantityString(
|
||||
R.plurals.delete_conversations_confirmation_dialog_title, 1))
|
||||
.setPositiveButton(R.string.delete_conversation_confirmation_button,
|
||||
|
||||
@@ -70,7 +70,7 @@ public class MessageDetailsDialog {
|
||||
|
||||
private static void showDialog(final Context context, String messageDetails) {
|
||||
if (!TextUtils.isEmpty(messageDetails)) {
|
||||
new AlertDialog.Builder(context)
|
||||
new AlertDialog.Builder(context, R.style.AlertDialogTheme)
|
||||
.setTitle(R.string.message_details_title)
|
||||
.setMessage(messageDetails)
|
||||
.setCancelable(true)
|
||||
|
||||
@@ -125,7 +125,7 @@ public abstract class AbstractConversationListActivity extends BugleActionBarAct
|
||||
return;
|
||||
}
|
||||
|
||||
new AlertDialog.Builder(this)
|
||||
new AlertDialog.Builder(this, R.style.AlertDialogTheme)
|
||||
.setTitle(getResources().getQuantityString(
|
||||
R.plurals.delete_conversations_confirmation_dialog_title,
|
||||
conversations.size()))
|
||||
@@ -192,7 +192,7 @@ public abstract class AbstractConversationListActivity extends BugleActionBarAct
|
||||
@Override
|
||||
public void onActionBarBlock(final SelectedConversation conversation) {
|
||||
final Resources res = getResources();
|
||||
new AlertDialog.Builder(this)
|
||||
new AlertDialog.Builder(this, R.style.AlertDialogTheme)
|
||||
.setTitle(res.getString(R.string.block_confirmation_title,
|
||||
conversation.otherParticipantNormalizedDestination))
|
||||
.setMessage(res.getString(R.string.block_confirmation_message))
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
@@ -38,7 +39,7 @@ public class CopyContactDetailDialog implements DialogInterface.OnClickListener
|
||||
}
|
||||
|
||||
public void show() {
|
||||
new AlertDialog.Builder(mContext)
|
||||
new AlertDialog.Builder(mContext, R.style.AlertDialogTheme)
|
||||
.setView(createBodyView())
|
||||
.setTitle(R.string.copy_to_clipboard_dialog_title)
|
||||
.setPositiveButton(R.string.copy_to_clipboard, this)
|
||||
|
||||
@@ -146,7 +146,7 @@ public class PeopleAndOptionsFragment extends Fragment
|
||||
}
|
||||
final Resources res = getResources();
|
||||
final Activity activity = getActivity();
|
||||
new AlertDialog.Builder(activity)
|
||||
new AlertDialog.Builder(activity, R.style.AlertDialogTheme)
|
||||
.setTitle(res.getString(R.string.block_confirmation_title,
|
||||
item.getOtherParticipant().getDisplayDestination()))
|
||||
.setMessage(res.getString(R.string.block_confirmation_message))
|
||||
|
||||
@@ -57,7 +57,7 @@ public class BugleActivityUtil {
|
||||
private static boolean checkHasSmsPermissionsForUser(Context context, Activity activity) {
|
||||
UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) {
|
||||
new AlertDialog.Builder(activity)
|
||||
new AlertDialog.Builder(activity, R.style.AlertDialogTheme)
|
||||
.setMessage(R.string.requires_sms_permissions_message)
|
||||
.setCancelable(false)
|
||||
.setNegativeButton(R.string.requires_sms_permissions_close_button,
|
||||
|
||||
Reference in New Issue
Block a user