mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-01-21 08:37:31 +01:00
Fix bug in Location API
This commit is contained in:
parent
da731b082c
commit
3a156903f6
2
extern/GmsApi
vendored
2
extern/GmsApi
vendored
@ -1 +1 @@
|
|||||||
Subproject commit cb0458f17e55e713b10fe5611890887d0c8b910e
|
Subproject commit 6f5bf2335138fda80460d906d1f2ec3d6ddfaec5
|
@ -33,9 +33,10 @@ import com.google.android.gms.location.ILocationListener;
|
|||||||
import com.google.android.gms.location.LocationAvailability;
|
import com.google.android.gms.location.LocationAvailability;
|
||||||
import com.google.android.gms.location.LocationRequest;
|
import com.google.android.gms.location.LocationRequest;
|
||||||
import com.google.android.gms.location.LocationSettingsRequest;
|
import com.google.android.gms.location.LocationSettingsRequest;
|
||||||
|
import com.google.android.gms.location.LocationSettingsResult;
|
||||||
import com.google.android.gms.location.internal.IGeofencerCallbacks;
|
import com.google.android.gms.location.internal.IGeofencerCallbacks;
|
||||||
import com.google.android.gms.location.internal.IGoogleLocationManagerService;
|
import com.google.android.gms.location.internal.IGoogleLocationManagerService;
|
||||||
import com.google.android.gms.location.internal.ISettingsCallback;
|
import com.google.android.gms.location.internal.ISettingsCallbacks;
|
||||||
import com.google.android.gms.location.internal.LocationRequestInternal;
|
import com.google.android.gms.location.internal.LocationRequestInternal;
|
||||||
import com.google.android.gms.location.internal.LocationRequestUpdateData;
|
import com.google.android.gms.location.internal.LocationRequestUpdateData;
|
||||||
import com.google.android.gms.location.places.AutocompleteFilter;
|
import com.google.android.gms.location.places.AutocompleteFilter;
|
||||||
@ -291,20 +292,23 @@ public class GoogleLocationManagerServiceImpl extends IGoogleLocationManagerServ
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void iglms63(LocationSettingsRequest settingsRequest, ISettingsCallback callback, String packageName) throws RemoteException {
|
public void requestLocationSettingsDialog(LocationSettingsRequest settingsRequest, ISettingsCallbacks callback, String packageName) throws RemoteException {
|
||||||
Log.d(TAG, "iglms63");
|
Log.d(TAG, "requestLocationSettingsDialog: " + settingsRequest);
|
||||||
|
callback.onLocationSettingsResult(new LocationSettingsResult(Status.CANCELED));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void requestLocationUpdatesInternalWithListener(LocationRequestInternal request,
|
public void requestLocationUpdatesInternalWithListener(LocationRequestInternal request,
|
||||||
ILocationListener listener) throws RemoteException {
|
ILocationListener listener) throws RemoteException {
|
||||||
Log.d(TAG, "requestLocationUpdatesInternalWithListener: " + request);
|
Log.d(TAG, "requestLocationUpdatesInternalWithListener: " + request);
|
||||||
|
getLocationManager().requestLocationUpdates(request.request, listener, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void requestLocationUpdatesInternalWithIntent(LocationRequestInternal request,
|
public void requestLocationUpdatesInternalWithIntent(LocationRequestInternal request,
|
||||||
PendingIntent callbackIntent) throws RemoteException {
|
PendingIntent callbackIntent) throws RemoteException {
|
||||||
Log.d(TAG, "requestLocationUpdatesInternalWithIntent: " + request);
|
Log.d(TAG, "requestLocationUpdatesInternalWithIntent: " + request);
|
||||||
|
getLocationManager().requestLocationUpdates(request.request, callbackIntent, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -18,6 +18,7 @@ package org.microg.gms.location;
|
|||||||
|
|
||||||
import android.accounts.Account;
|
import android.accounts.Account;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
import com.google.android.gms.location.places.PlaceReport;
|
import com.google.android.gms.location.places.PlaceReport;
|
||||||
import com.google.android.gms.location.reporting.ReportingState;
|
import com.google.android.gms.location.reporting.ReportingState;
|
||||||
@ -26,28 +27,35 @@ import com.google.android.gms.location.reporting.UploadRequestResult;
|
|||||||
import com.google.android.gms.location.reporting.internal.IReportingService;
|
import com.google.android.gms.location.reporting.internal.IReportingService;
|
||||||
|
|
||||||
public class ReportingServiceImpl extends IReportingService.Stub {
|
public class ReportingServiceImpl extends IReportingService.Stub {
|
||||||
|
private static final String TAG = "GmsLocReportSvcImpl";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ReportingState getReportingState(Account account) throws RemoteException {
|
public ReportingState getReportingState(Account account) throws RemoteException {
|
||||||
|
Log.d(TAG, "getReportingState");
|
||||||
return new ReportingState();
|
return new ReportingState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int tryOptIn(Account account) throws RemoteException {
|
public int tryOptIn(Account account) throws RemoteException {
|
||||||
|
Log.d(TAG, "tryOptIn");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UploadRequestResult requestUpload(UploadRequest request) throws RemoteException {
|
public UploadRequestResult requestUpload(UploadRequest request) throws RemoteException {
|
||||||
|
Log.d(TAG, "requestUpload");
|
||||||
return new UploadRequestResult();
|
return new UploadRequestResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int cancelUploadRequest(long l) throws RemoteException {
|
public int cancelUploadRequest(long l) throws RemoteException {
|
||||||
|
Log.d(TAG, "cancelUploadRequest");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int reportDeviceAtPlace(Account account, PlaceReport report) throws RemoteException {
|
public int reportDeviceAtPlace(Account account, PlaceReport report) throws RemoteException {
|
||||||
|
Log.d(TAG, "reportDeviceAtPlace");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user