Skip to content
Snippets Groups Projects
Commit 3f480fee authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Convert extensionTime to millis" into tm-dev

parents b207bfef 5d186e78
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
/**
* Entry point for most GNSS HAL commands and callbacks.
......@@ -1271,7 +1272,8 @@ public class GnssNative {
@NativeEntryPoint
boolean isInEmergencySession() {
return Binder.withCleanCallingIdentity(
() -> mEmergencyHelper.isInEmergency(mConfiguration.getEsExtensionSec()));
() -> mEmergencyHelper.isInEmergency(
TimeUnit.SECONDS.toMillis(mConfiguration.getEsExtensionSec())));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment