Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
GmsCore
Commits
a173d268
Verified
Commit
a173d268
authored
Apr 15, 2021
by
Marvin W.
🐿
Browse files
Announce (unsupported) feature in location manager
parent
161c2ffa
Changes
1
Show whitespace changes
Inline
Side-by-side
play-services-location-core/src/main/java/org/microg/gms/location/GoogleLocationManagerService.java
View file @
a173d268
...
@@ -19,6 +19,8 @@ package org.microg.gms.location;
...
@@ -19,6 +19,8 @@ package org.microg.gms.location;
import
android.os.RemoteException
;
import
android.os.RemoteException
;
import
android.util.Log
;
import
android.util.Log
;
import
com.google.android.gms.common.Feature
;
import
com.google.android.gms.common.internal.ConnectionInfo
;
import
com.google.android.gms.common.internal.GetServiceRequest
;
import
com.google.android.gms.common.internal.GetServiceRequest
;
import
com.google.android.gms.common.internal.IGmsCallbacks
;
import
com.google.android.gms.common.internal.IGmsCallbacks
;
...
@@ -36,7 +38,11 @@ public class GoogleLocationManagerService extends BaseService {
...
@@ -36,7 +38,11 @@ public class GoogleLocationManagerService extends BaseService {
public
void
handleServiceRequest
(
IGmsCallbacks
callback
,
GetServiceRequest
request
,
GmsService
service
)
throws
RemoteException
{
public
void
handleServiceRequest
(
IGmsCallbacks
callback
,
GetServiceRequest
request
,
GmsService
service
)
throws
RemoteException
{
impl
.
invokeOnceReady
(()
->
{
impl
.
invokeOnceReady
(()
->
{
try
{
try
{
callback
.
onPostInitComplete
(
0
,
impl
.
asBinder
(),
null
);
ConnectionInfo
info
=
new
ConnectionInfo
();
info
.
features
=
new
Feature
[]
{
new
Feature
(
"name_sleep_segment_request"
,
1
)
};
callback
.
onPostInitCompleteWithConnectionInfo
(
0
,
impl
.
asBinder
(),
info
);
}
catch
(
RemoteException
e
)
{
}
catch
(
RemoteException
e
)
{
Log
.
w
(
TAG
,
e
);
Log
.
w
(
TAG
,
e
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment