Skip to content

Commit 51e6f8a

Browse files
committed
fix comment punctuations
1 parent 1033993 commit 51e6f8a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

messaging/app/src/main/java/com/google/firebase/example/messaging/MainActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ private void askNotificationPermission() {
119119
} else if (shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)) {
120120
// TODO: display an educational UI explaining to the user the features that will be enabled
121121
// by them granting the POST_NOTIFICATION permission. This UI should provide the user
122-
// "OK" and "No thanks" buttons. If the user selects "OK" directly request the permission.
123-
// If the user selects "No thanks" allow the user to continue without notifications.
122+
// "OK" and "No thanks" buttons. If the user selects "OK," directly request the permission.
123+
// If the user selects "No thanks," allow the user to continue without notifications.
124124
} else {
125125
// Directly ask for the permission
126126
requestPermissions(new String[] { Manifest.permission.POST_NOTIFICATIONS }, NOTIFICATION_REQUEST_CODE);
@@ -140,7 +140,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions,
140140
grantResults[0] == PackageManager.PERMISSION_GRANTED) {
141141
// FCM SDK (and your app) can post notifications.
142142
} else {
143-
// TODO: Inform user that that your app will not show notifications
143+
// TODO: Inform user that that your app will not show notifications.
144144
}
145145
return;
146146
}

messaging/app/src/main/java/com/google/firebase/example/messaging/kotlin/MainActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class MainActivity : AppCompatActivity() {
106106
} else if (shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)) {
107107
// TODO: display an educational UI explaining to the user the features that will be enabled
108108
// by them granting the POST_NOTIFICATION permission. This UI should provide the user
109-
// "OK" and "No thanks" buttons. If the user selects "OK" directly request the permission.
110-
// If the user selects "No thanks" allow the user to continue without notifications.
109+
// "OK" and "No thanks" buttons. If the user selects "OK," directly request the permission.
110+
// If the user selects "No thanks," allow the user to continue without notifications.
111111
} else {
112112
// Directly ask for the permission
113113
requestPermissions(arrayOf(Manifest.permission.POST_NOTIFICATIONS), NOTIFICATION_REQUEST_CODE)
@@ -124,7 +124,7 @@ class MainActivity : AppCompatActivity() {
124124
if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
125125
// FCM SDK (and your app) can post notifications.
126126
} else {
127-
// TODO: Inform user that that your app will not show notifications
127+
// TODO: Inform user that that your app will not show notifications.
128128
}
129129
return
130130
}

0 commit comments

Comments
 (0)