Skip to content

Commit 5018e63

Browse files
committed
Fix an issue with Messaging needing a variable to be final
1 parent b0a9062 commit 5018e63

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)