summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpProperty.cpp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2014-03-07 13:29:59 -0800
committerMike Lockwood <lockwood@google.com>2014-03-11 15:06:39 -0700
commit0fa848d780cf990a2860637f40432d28594c85a3 (patch)
treef2a205d5d14cffd5b164fb8cedc65d6dad59a915 /media/mtp/MtpProperty.cpp
parent3a06522fd0e74934acb4bacaf1e90209bc7e9aa8 (diff)
downloadframeworks_av-0fa848d780cf990a2860637f40432d28594c85a3.zip
frameworks_av-0fa848d780cf990a2860637f40432d28594c85a3.tar.gz
frameworks_av-0fa848d780cf990a2860637f40432d28594c85a3.tar.bz2
MTP: Add support for device property changed events
Also fixed bug in MtpProperty::write() for device properties Bug: 7342482 Change-Id: If0099095d101409d131564e55b1939895c69c202
Diffstat (limited to 'media/mtp/MtpProperty.cpp')
-rw-r--r--media/mtp/MtpProperty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mtp/MtpProperty.cpp b/media/mtp/MtpProperty.cpp
index 375ed9a..3838ce8 100644
--- a/media/mtp/MtpProperty.cpp
+++ b/media/mtp/MtpProperty.cpp
@@ -190,9 +190,9 @@ void MtpProperty::write(MtpDataPacket& packet) {
if (deviceProp)
writeValue(packet, mCurrentValue);
}
- packet.putUInt32(mGroupCode);
if (!deviceProp)
- packet.putUInt8(mFormFlag);
+ packet.putUInt32(mGroupCode);
+ packet.putUInt8(mFormFlag);
if (mFormFlag == kFormRange) {
writeValue(packet, mMinimumValue);
writeValue(packet, mMaximumValue);