diff options
| author | 2025-03-10 09:50:35 -0700 | |
|---|---|---|
| committer | 2025-03-10 09:50:35 -0700 | |
| commit | 376c3cd45e7af8eeb8a4c13b4a01d65b44069c5d (patch) | |
| tree | be5796e7b3cc6383caf7987ab194e8d4a2ce9c20 /libs/input/KeyboardClassifier.cpp | |
| parent | 67b445a490a71e01b870186315f54344b1f96466 (diff) | |
| parent | 32ab7738564ffb5f327d2e70f7a8286584f7153f (diff) | |
Merge "Merge 25Q1 (ab/BP1A.250305.020) to AOSP main" into main
Diffstat (limited to 'libs/input/KeyboardClassifier.cpp')
| -rw-r--r-- | libs/input/KeyboardClassifier.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/input/KeyboardClassifier.cpp b/libs/input/KeyboardClassifier.cpp index 0c2c7be582..2a83919283 100644 --- a/libs/input/KeyboardClassifier.cpp +++ b/libs/input/KeyboardClassifier.cpp @@ -57,14 +57,14 @@ void KeyboardClassifier::notifyKeyboardChanged(DeviceId deviceId, uint32_t deviceClasses) { if (mRustClassifier) { RustInputDeviceIdentifier rustIdentifier; - rustIdentifier.name = identifier.name; - rustIdentifier.location = identifier.location; - rustIdentifier.unique_id = identifier.uniqueId; + rustIdentifier.name = rust::String::lossy(identifier.name); + rustIdentifier.location = rust::String::lossy(identifier.location); + rustIdentifier.unique_id = rust::String::lossy(identifier.uniqueId); rustIdentifier.bus = identifier.bus; rustIdentifier.vendor = identifier.vendor; rustIdentifier.product = identifier.product; rustIdentifier.version = identifier.version; - rustIdentifier.descriptor = identifier.descriptor; + rustIdentifier.descriptor = rust::String::lossy(identifier.descriptor); android::input::keyboardClassifier::notifyKeyboardChanged(**mRustClassifier, deviceId, rustIdentifier, deviceClasses); } else { |