File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ std::unique_ptr<KeyCharacterMap> KeyCharacterMap::readFromParcel(Parcel* parcel)
615615 ALOGE (" %s: Null parcel" , __func__);
616616 return nullptr ;
617617 }
618- std::string loadFileName = parcel->readCString ();
618+ std::string loadFileName = parcel->readString8 (). c_str ();
619619 std::unique_ptr<KeyCharacterMap> map =
620620 std::make_unique<KeyCharacterMap>(KeyCharacterMap (loadFileName));
621621 map->mType = static_cast <KeyCharacterMap::KeyboardType>(parcel->readInt32 ());
@@ -704,7 +704,7 @@ void KeyCharacterMap::writeToParcel(Parcel* parcel) const {
704704 ALOGE (" %s: Null parcel" , __func__);
705705 return ;
706706 }
707- parcel->writeCString ( mLoadFileName .c_str ());
707+ parcel->writeString8 ( String8 ( mLoadFileName .c_str () ));
708708 parcel->writeInt32 (static_cast <int32_t >(mType ));
709709 parcel->writeBool (mLayoutOverlayApplied );
710710
You can’t perform that action at this time.
0 commit comments