This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
shell/platform/android/io/flutter/embedding/android Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 99
1010namespace flutter {
1111
12- // If this value changes, update the encoding code in the following files:
13- //
14- // * KeyData.java (KeyData.FIELD_COUNT)
15- // * platform_dispatcher.dart (_kKeyDataFieldCount)
12+ // If this value changes, update the encoding code in the following files:
13+ //
14+ // * KeyData.java (KeyData.FIELD_COUNT)
15+ // * platform_dispatcher.dart (_kKeyDataFieldCount)
1616static constexpr int kKeyDataFieldCount = 6 ;
1717static constexpr int kBytesPerKeyField = sizeof (int64_t );
1818
Original file line number Diff line number Diff line change @@ -140,10 +140,10 @@ public KeyData(@NonNull ByteBuffer buffer) {
140140
141141 long timestamp ;
142142 Type type ;
143- DeviceType deviceType ;
144143 long physicalKey ;
145144 long logicalKey ;
146145 boolean synthesized ;
146+ DeviceType deviceType ;
147147
148148 /** The character of this key data encoded in UTF-8. */
149149 @ Nullable String character ;
@@ -173,7 +173,7 @@ ByteBuffer toBytes() {
173173 packet .putLong (physicalKey );
174174 packet .putLong (logicalKey );
175175 packet .putLong (synthesized ? 1L : 0L );
176- packet .putLong (deviceType );
176+ packet .putLong (deviceType . getValue () );
177177 if (charBytes != null ) {
178178 packet .put (charBytes );
179179 }
You can’t perform that action at this time.
0 commit comments