Bug 1222098 - Devicemotion event timestamp should return values from Android sensor API and not Gecko. r:smaug

This commit is contained in:
James Willcox
2016-04-04 12:22:59 -05:00
parent 126e430fe1
commit c954a908ff
7 changed files with 41 additions and 4 deletions

View File

@@ -575,7 +575,7 @@ nsAppShell::LegacyGeckoEvent::Run()
}
const hal::SensorAccuracyType &accuracy = (hal::SensorAccuracyType) curEvent->MetaState();
hal::SensorData sdata(type, PR_Now(), values, accuracy);
hal::SensorData sdata(type, curEvent->Time(), values, accuracy);
hal::NotifySensorChange(sdata);
}
break;