Skip to content

Commit f45a80e

Browse files
authored
Merge pull request #501 from firebase/am-messaging-final
Fix an issue with Messaging needing a variable to be final
2 parents dea10eb + 5018e63 commit f45a80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messaging/src/android/java/com/google/firebase/messaging/cpp/RegistrationIntentService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class RegistrationIntentService extends JobIntentService {
3838
// Fetch the latest registration token and notify the C++ layer.
3939
@Override
4040
protected void onHandleWork(Intent intent) {
41-
Context context = this;
41+
final Context context = this;
4242
FirebaseMessaging.getInstance().getToken()
4343
.addOnCompleteListener(new OnCompleteListener<String>() {
4444
@Override

0 commit comments

Comments
 (0)