mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-20 00:35:47 +01:00
Improve wording of backup alarm permission megaphone.
This commit is contained in:
committed by
Cody Henthorne
parent
638b4f8b20
commit
7d7b055da5
@@ -410,10 +410,10 @@ public final class Megaphones {
|
||||
@SuppressLint("InlinedApi")
|
||||
private static Megaphone buildBackupPermissionMegaphone(@NonNull Context context) {
|
||||
return new Megaphone.Builder(Event.BACKUP_SCHEDULE_PERMISSION, Megaphone.Style.BASIC)
|
||||
.setTitle(R.string.BackupSchedulePermissionMegaphone__cant_back_up_chats)
|
||||
.setImage(R.drawable.ic_cant_backup_megaphone)
|
||||
.setBody(R.string.BackupSchedulePermissionMegaphone__your_chats_are_no_longer_being_automatically_backed_up)
|
||||
.setActionButton(R.string.BackupSchedulePermissionMegaphone__back_up_chats, (megaphone, controller) -> {
|
||||
.setTitle(R.string.BackupSchedulePermissionMegaphone__improve_backup_reliability)
|
||||
.setImage(R.drawable.ic_improve_backup_reliability_megaphone)
|
||||
.setBody(R.string.BackupSchedulePermissionMegaphone__allow_the_alarms_permission_to_improve_automatic_daily_backups)
|
||||
.setActionButton(R.string.BackupSchedulePermissionMegaphone__allow, (megaphone, controller) -> {
|
||||
controller.onMegaphoneDialogFragmentRequested(new ReenableBackupsDialogFragment());
|
||||
})
|
||||
.setSecondaryButton(R.string.BackupSchedulePermissionMegaphone__not_now, (megaphone, controller) -> {
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="64dp"
|
||||
android:height="64dp"
|
||||
android:viewportWidth="64"
|
||||
android:viewportHeight="64">
|
||||
<path
|
||||
android:pathData="M32,32m-32,0a32,32 0,1 1,64 0a32,32 0,1 1,-64 0"
|
||||
android:fillColor="#1B1C1F"/>
|
||||
<path
|
||||
android:pathData="M32,32m-32,0a32,32 0,1 1,64 0a32,32 0,1 1,-64 0"
|
||||
android:fillColor="#B6C5FA"
|
||||
android:fillAlpha="0.05"/>
|
||||
<path
|
||||
android:pathData="M45.958,49L40.75,43.833C39.5,44.778 38.125,45.514 36.625,46.042C35.125,46.569 33.528,46.833 31.833,46.833C29.778,46.833 27.847,46.444 26.042,45.667C24.236,44.889 22.667,43.826 21.333,42.479C20,41.132 18.938,39.556 18.146,37.75C17.354,35.944 16.958,34 16.958,31.917C16.958,30.222 17.222,28.632 17.75,27.146C18.278,25.66 19.014,24.292 19.958,23.042L15,18.042L16.708,16.292L47.708,47.292L45.958,49ZM31.875,44.417C33.208,44.417 34.472,44.208 35.667,43.792C36.861,43.375 37.958,42.792 38.958,42.042L21.708,24.792C20.958,25.792 20.389,26.882 20,28.063C19.611,29.243 19.417,30.5 19.417,31.833C19.417,35.306 20.618,38.271 23.021,40.729C25.424,43.188 28.375,44.417 31.875,44.417ZM37.042,26.708V24.292H41.458C40.264,22.847 38.826,21.701 37.146,20.854C35.465,20.007 33.694,19.583 31.833,19.583C30.639,19.583 29.521,19.729 28.479,20.021C27.438,20.313 26.458,20.75 25.542,21.333L23.792,19.5C24.958,18.778 26.215,18.208 27.563,17.792C28.91,17.375 30.333,17.167 31.833,17.167C34,17.167 36.076,17.632 38.063,18.563C40.049,19.493 41.75,20.819 43.167,22.542V18.167H45.583V26.708H37.042ZM44.25,40.042L42.417,38.208C42.972,37.347 43.389,36.438 43.667,35.479C43.944,34.521 44.097,33.5 44.125,32.417H46.625C46.569,33.861 46.347,35.222 45.958,36.5C45.569,37.778 45,38.958 44.25,40.042Z"
|
||||
android:fillColor="#B6C5FA"/>
|
||||
</vector>
|
||||
@@ -1,16 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="64dp"
|
||||
android:height="64dp"
|
||||
android:viewportWidth="64"
|
||||
android:viewportHeight="64">
|
||||
<path
|
||||
android:pathData="M32,32m-32,0a32,32 0,1 1,64 0a32,32 0,1 1,-64 0"
|
||||
android:fillColor="#FBFCFE"/>
|
||||
<path
|
||||
android:pathData="M32,32m-32,0a32,32 0,1 1,64 0a32,32 0,1 1,-64 0"
|
||||
android:fillColor="#50679F"
|
||||
android:fillAlpha="0.05"/>
|
||||
<path
|
||||
android:pathData="M45.958,49L40.75,43.833C39.5,44.778 38.125,45.514 36.625,46.042C35.125,46.569 33.528,46.833 31.833,46.833C29.778,46.833 27.847,46.444 26.042,45.667C24.236,44.889 22.667,43.826 21.333,42.479C20,41.132 18.938,39.556 18.146,37.75C17.354,35.944 16.958,34 16.958,31.917C16.958,30.222 17.222,28.632 17.75,27.146C18.278,25.66 19.014,24.292 19.958,23.042L15,18.042L16.708,16.292L47.708,47.292L45.958,49ZM31.875,44.417C33.208,44.417 34.472,44.208 35.667,43.792C36.861,43.375 37.958,42.792 38.958,42.042L21.708,24.792C20.958,25.792 20.389,26.882 20,28.063C19.611,29.243 19.417,30.5 19.417,31.833C19.417,35.306 20.618,38.271 23.021,40.729C25.424,43.188 28.375,44.417 31.875,44.417ZM37.042,26.708V24.292H41.458C40.264,22.847 38.826,21.701 37.146,20.854C35.465,20.007 33.694,19.583 31.833,19.583C30.639,19.583 29.521,19.729 28.479,20.021C27.438,20.313 26.458,20.75 25.542,21.333L23.792,19.5C24.958,18.778 26.215,18.208 27.563,17.792C28.91,17.375 30.333,17.167 31.833,17.167C34,17.167 36.076,17.632 38.063,18.563C40.049,19.493 41.75,20.819 43.167,22.542V18.167H45.583V26.708H37.042ZM44.25,40.042L42.417,38.208C42.972,37.347 43.389,36.438 43.667,35.479C43.944,34.521 44.097,33.5 44.125,32.417H46.625C46.569,33.861 46.347,35.222 45.958,36.5C45.569,37.778 45,38.958 44.25,40.042Z"
|
||||
android:fillColor="#2C58C3"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,29 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="64dp"
|
||||
android:height="64dp"
|
||||
android:viewportWidth="64"
|
||||
android:viewportHeight="64">
|
||||
<path
|
||||
android:pathData="M32,32m-27,0a27,27 0,1 1,54 0a27,27 0,1 1,-54 0"
|
||||
android:fillColor="#ADB4F1"
|
||||
android:strokeWidth="2"
|
||||
android:strokeColor="#6A73C0"/>
|
||||
<path
|
||||
android:pathData="M23.9474,20.9306C26.2069,19.2838 28.9881,18.3125 32,18.3125C35.0119,18.3125 37.7931,19.2838 40.0526,20.9306C40.6384,21.3575 41.4594,21.2288 41.8863,20.643C42.3133,20.0572 42.1845,19.2362 41.5987,18.8092C38.9053,16.8462 35.586,15.6875 32,15.6875C28.414,15.6875 25.0947,16.8462 22.4013,18.8092C21.8155,19.2362 21.6867,20.0572 22.1137,20.643C22.5406,21.2288 23.3616,21.3575 23.9474,20.9306Z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M20.9303,23.9478C21.3572,23.362 21.2284,22.541 20.6426,22.1141C20.0568,21.6871 19.2358,21.8159 18.8089,22.4017C16.846,25.0951 15.6875,28.4142 15.6875,32C15.6875,36.1115 17.2097,39.8685 19.7187,42.7365L19.259,43.0123C18.4021,43.5264 18.5909,44.8192 19.559,45.0669L23.7767,46.1458C24.6047,46.3576 25.3572,45.6051 25.1454,44.7771L24.0664,40.5595C23.8188,39.5913 22.526,39.4026 22.0119,40.2595L21.6165,40.9185C19.556,38.5221 18.3125,35.4068 18.3125,32C18.3125,28.9882 19.2837,26.2072 20.9303,23.9478Z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M45.1911,22.4017C44.7642,21.8159 43.9432,21.6871 43.3574,22.1141C42.7716,22.541 42.6428,23.362 43.0697,23.9478C44.7163,26.2072 45.6875,28.9882 45.6875,32C45.6875,35.0118 44.7163,37.7928 43.0697,40.0522C42.6428,40.638 42.7716,41.459 43.3574,41.8859C43.9432,42.3129 44.7642,42.1841 45.1911,41.5983C47.154,38.9049 48.3125,35.5858 48.3125,32C48.3125,28.4142 47.154,25.0951 45.1911,22.4017Z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M41.5987,45.1908C42.1845,44.7638 42.3133,43.9428 41.8863,43.357C41.4594,42.7712 40.6384,42.6425 40.0526,43.0694C39.0367,43.8098 37.9157,44.4133 36.7166,44.8535C36.0361,45.1033 35.687,45.8574 35.9368,46.5379C36.1866,47.2184 36.9407,47.5675 37.6212,47.3177C39.0523,46.7924 40.3888,46.0726 41.5987,45.1908Z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M28.7968,45.3109C28.0919,45.142 27.3835,45.5765 27.2146,46.2814C27.0456,46.9863 27.4801,47.6947 28.185,47.8636C29.4101,48.1573 30.6878,48.3125 32,48.3125C32.2118,48.3125 32.4228,48.3085 32.6328,48.3004C33.3572,48.2728 33.9219,47.6631 33.8943,46.9388C33.8666,46.2144 33.257,45.6497 32.5326,45.6773C32.356,45.6841 32.1784,45.6875 32,45.6875C30.8954,45.6875 29.8231,45.5569 28.7968,45.3109Z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M31.25,21.5C30.6364,21.5 30.1334,21.9866 30.1129,22.5998L29.7525,33.4138C29.7508,33.4424 29.75,33.4711 29.75,33.5C29.75,34.3284 30.4216,35 31.25,35C31.2893,35 31.3285,34.9985 31.3673,34.9954L39.1594,34.6413C39.7696,34.6135 40.25,34.1108 40.25,33.5C40.25,32.8892 39.7696,32.3865 39.1594,32.3587L32.7026,32.0653L32.3871,22.5998C32.3666,21.9866 31.8636,21.5 31.25,21.5Z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
</vector>
|
||||
@@ -22,7 +22,7 @@
|
||||
android:layout_marginHorizontal="32dp"
|
||||
android:layout_marginTop="48dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/BackupSchedulePermissionMegaphone__to_reenable_backups"
|
||||
android:text="@string/BackupSchedulePermissionMegaphone__to_allow_permission"
|
||||
android:textAppearance="@style/Signal.Text.HeadlineMedium"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -7522,16 +7522,16 @@
|
||||
<!-- Fourth step number/bullet for choose new default sms app instructions -->
|
||||
<string name="ChooseANewDefaultSmsAppFragment__bullet_4">4</string>
|
||||
<!-- BackupSchedulePermission Megaphone -->
|
||||
<!-- The title on an alert window that explains to the user that we are unable to backup their messages -->
|
||||
<string name="BackupSchedulePermissionMegaphone__cant_back_up_chats">Can\'t back up chats</string>
|
||||
<!-- The body text of an alert window that tells the user that we are unable to backup their messages -->
|
||||
<string name="BackupSchedulePermissionMegaphone__your_chats_are_no_longer_being_automatically_backed_up">Your chats are no longer being automatically backed up.</string>
|
||||
<!-- The text on a button in an alert window that, when clicked, will take the user to a screen to re-enable backups -->
|
||||
<string name="BackupSchedulePermissionMegaphone__back_up_chats">Back up chats</string>
|
||||
<!-- The title on an alert window that asks the user to grant the alarms permission so that automatic backups run more reliably -->
|
||||
<string name="BackupSchedulePermissionMegaphone__improve_backup_reliability">Improve backup reliability</string>
|
||||
<!-- The body text of an alert window that asks the user to grant the alarms permission so that automatic backups run more reliably -->
|
||||
<string name="BackupSchedulePermissionMegaphone__allow_the_alarms_permission_to_improve_automatic_daily_backups">Allow the \"alarms\" permission to improve automatic daily backups.</string>
|
||||
<!-- The text on a button in an alert window that, when clicked, will take the user to a screen to grant the alarms permission -->
|
||||
<string name="BackupSchedulePermissionMegaphone__allow">Allow</string>
|
||||
<!-- The text on a button in an alert window that, when clicked, will take the user to a screen to re-enable backups -->
|
||||
<string name="BackupSchedulePermissionMegaphone__not_now">Not now</string>
|
||||
<!-- Re-enable backup permission bottom sheet title -->
|
||||
<string name="BackupSchedulePermissionMegaphone__to_reenable_backups">To re-enable backups:</string>
|
||||
<!-- Alarms permission bottom sheet title, followed by a numbered list of instructions -->
|
||||
<string name="BackupSchedulePermissionMegaphone__to_allow_permission">To allow permission:</string>
|
||||
<!-- Re-enable backups permission bottom sheet instruction 1 text -->
|
||||
<string name="BackupSchedulePermissionMegaphone__tap_the_go_to_settings_button_below">Tap the \"Go to settings\" button below</string>
|
||||
<!-- Re-enable backups permission bottom sheet instruction 2 text -->
|
||||
|
||||
Reference in New Issue
Block a user