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() {
|
private void show() {
|
||||||
Assert.isNull(mDialog);
|
Assert.isNull(mDialog);
|
||||||
mDialog = new AlertDialog.Builder(mContext)
|
mDialog = new AlertDialog.Builder(mContext, R.style.AlertDialogTheme)
|
||||||
.setView(createView())
|
.setView(createView())
|
||||||
.setTitle(R.string.group_mms_pref_title)
|
.setTitle(R.string.group_mms_pref_title)
|
||||||
.setNegativeButton(android.R.string.cancel, null)
|
.setNegativeButton(android.R.string.cancel, null)
|
||||||
|
|||||||
@@ -822,7 +822,7 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
|||||||
return true;
|
return true;
|
||||||
} else if (itemId == R.id.action_delete) {
|
} else if (itemId == R.id.action_delete) {
|
||||||
if (isReadyForDeleteAction()) {
|
if (isReadyForDeleteAction()) {
|
||||||
new AlertDialog.Builder(getActivity())
|
new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme)
|
||||||
.setTitle(getResources().getQuantityString(
|
.setTitle(getResources().getQuantityString(
|
||||||
R.plurals.delete_conversations_confirmation_dialog_title, 1))
|
R.plurals.delete_conversations_confirmation_dialog_title, 1))
|
||||||
.setPositiveButton(R.string.delete_conversation_confirmation_button,
|
.setPositiveButton(R.string.delete_conversation_confirmation_button,
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public class MessageDetailsDialog {
|
|||||||
|
|
||||||
private static void showDialog(final Context context, String messageDetails) {
|
private static void showDialog(final Context context, String messageDetails) {
|
||||||
if (!TextUtils.isEmpty(messageDetails)) {
|
if (!TextUtils.isEmpty(messageDetails)) {
|
||||||
new AlertDialog.Builder(context)
|
new AlertDialog.Builder(context, R.style.AlertDialogTheme)
|
||||||
.setTitle(R.string.message_details_title)
|
.setTitle(R.string.message_details_title)
|
||||||
.setMessage(messageDetails)
|
.setMessage(messageDetails)
|
||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ public abstract class AbstractConversationListActivity extends BugleActionBarAct
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
new AlertDialog.Builder(this)
|
new AlertDialog.Builder(this, R.style.AlertDialogTheme)
|
||||||
.setTitle(getResources().getQuantityString(
|
.setTitle(getResources().getQuantityString(
|
||||||
R.plurals.delete_conversations_confirmation_dialog_title,
|
R.plurals.delete_conversations_confirmation_dialog_title,
|
||||||
conversations.size()))
|
conversations.size()))
|
||||||
@@ -192,7 +192,7 @@ public abstract class AbstractConversationListActivity extends BugleActionBarAct
|
|||||||
@Override
|
@Override
|
||||||
public void onActionBarBlock(final SelectedConversation conversation) {
|
public void onActionBarBlock(final SelectedConversation conversation) {
|
||||||
final Resources res = getResources();
|
final Resources res = getResources();
|
||||||
new AlertDialog.Builder(this)
|
new AlertDialog.Builder(this, R.style.AlertDialogTheme)
|
||||||
.setTitle(res.getString(R.string.block_confirmation_title,
|
.setTitle(res.getString(R.string.block_confirmation_title,
|
||||||
conversation.otherParticipantNormalizedDestination))
|
conversation.otherParticipantNormalizedDestination))
|
||||||
.setMessage(res.getString(R.string.block_confirmation_message))
|
.setMessage(res.getString(R.string.block_confirmation_message))
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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() {
|
public void show() {
|
||||||
new AlertDialog.Builder(mContext)
|
new AlertDialog.Builder(mContext, R.style.AlertDialogTheme)
|
||||||
.setView(createBodyView())
|
.setView(createBodyView())
|
||||||
.setTitle(R.string.copy_to_clipboard_dialog_title)
|
.setTitle(R.string.copy_to_clipboard_dialog_title)
|
||||||
.setPositiveButton(R.string.copy_to_clipboard, this)
|
.setPositiveButton(R.string.copy_to_clipboard, this)
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ public class PeopleAndOptionsFragment extends Fragment
|
|||||||
}
|
}
|
||||||
final Resources res = getResources();
|
final Resources res = getResources();
|
||||||
final Activity activity = getActivity();
|
final Activity activity = getActivity();
|
||||||
new AlertDialog.Builder(activity)
|
new AlertDialog.Builder(activity, R.style.AlertDialogTheme)
|
||||||
.setTitle(res.getString(R.string.block_confirmation_title,
|
.setTitle(res.getString(R.string.block_confirmation_title,
|
||||||
item.getOtherParticipant().getDisplayDestination()))
|
item.getOtherParticipant().getDisplayDestination()))
|
||||||
.setMessage(res.getString(R.string.block_confirmation_message))
|
.setMessage(res.getString(R.string.block_confirmation_message))
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class BugleActivityUtil {
|
|||||||
private static boolean checkHasSmsPermissionsForUser(Context context, Activity activity) {
|
private static boolean checkHasSmsPermissionsForUser(Context context, Activity activity) {
|
||||||
UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||||
if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) {
|
if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) {
|
||||||
new AlertDialog.Builder(activity)
|
new AlertDialog.Builder(activity, R.style.AlertDialogTheme)
|
||||||
.setMessage(R.string.requires_sms_permissions_message)
|
.setMessage(R.string.requires_sms_permissions_message)
|
||||||
.setCancelable(false)
|
.setCancelable(false)
|
||||||
.setNegativeButton(R.string.requires_sms_permissions_close_button,
|
.setNegativeButton(R.string.requires_sms_permissions_close_button,
|
||||||
|
|||||||
Reference in New Issue
Block a user