Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1da6cd8

Browse files
committed
Fix lint warning
1 parent 1ae5961 commit 1da6cd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/platform/android/io/flutter/embedding/engine/systemchannels/LifecycleChannel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import io.flutter.embedding.engine.dart.DartExecutor;
1111
import io.flutter.plugin.common.BasicMessageChannel;
1212
import io.flutter.plugin.common.StringCodec;
13+
import java.util.Locale;
1314

1415
/**
1516
* A {@link BasicMessageChannel} that communicates lifecycle events to the framework.
@@ -102,7 +103,7 @@ private void sendState(AppLifecycleState state, boolean hasFocus) {
102103
// No change in the resulting Flutter state, so don't report anything.
103104
return;
104105
}
105-
String message = "AppLifecycleState." + newState.name().toLowerCase();
106+
String message = "AppLifecycleState." + newState.name().toLowerCase(Locale.ROOT);
106107
Log.v(TAG, "Sending " + message + " message.");
107108
channel.send(message);
108109
lastFlutterState = newState;

0 commit comments

Comments
 (0)