Skip to content

Commit eee1993

Browse files
committed
Formatting
1 parent 762326b commit eee1993

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

packages/firebase_messaging/android/src/main/java/io/flutter/plugins/firebasemessaging/FlutterFirebaseMessagingService.java

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public class FlutterFirebaseMessagingService extends FirebaseMessagingService {
5656
/** Background Dart execution context. */
5757
private static FlutterNativeView backgroundFlutterView;
5858

59-
@Nullable
60-
private static MethodChannel backgroundChannel;
59+
@Nullable private static MethodChannel backgroundChannel;
6160

6261
private static Long backgroundMessageHandle;
6362

@@ -170,22 +169,25 @@ public static void startBackgroundIsolate(Context context, long callbackHandle)
170169
backgroundFlutterView.runFromBundle(args);
171170
pluginRegistrantCallback.registerWith(backgroundFlutterView.getPluginRegistry());
172171

173-
BinaryMessenger messenger = backgroundFlutterView.getPluginRegistry()
174-
.registrarFor("io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService")
175-
.messenger();
172+
BinaryMessenger messenger =
173+
backgroundFlutterView
174+
.getPluginRegistry()
175+
.registrarFor("io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService")
176+
.messenger();
176177
final MethodChannel backgroundCallbackChannel =
177178
new MethodChannel(messenger, "plugins.flutter.io/firebase_messaging_background");
178-
backgroundCallbackChannel.setMethodCallHandler(new MethodCallHandler() {
179-
@Override
180-
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
181-
if ("FcmDartService#initialized".equals(call.method)) {
182-
FlutterFirebaseMessagingService.onInitialized();
183-
result.success(true);
184-
} else {
185-
result.notImplemented();
186-
}
187-
}
188-
});
179+
backgroundCallbackChannel.setMethodCallHandler(
180+
new MethodCallHandler() {
181+
@Override
182+
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
183+
if ("FcmDartService#initialized".equals(call.method)) {
184+
FlutterFirebaseMessagingService.onInitialized();
185+
result.success(true);
186+
} else {
187+
result.notImplemented();
188+
}
189+
}
190+
});
189191
setBackgroundChannel(backgroundCallbackChannel);
190192
}
191193
}

0 commit comments

Comments
 (0)