,
This commit is contained in:
12
.idea/deploymentTargetDropDown.xml
generated
12
.idea/deploymentTargetDropDown.xml
generated
@@ -1,6 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<runningDeviceTargetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="RUNNING_DEVICE_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="SERIAL_NUMBER" />
|
||||
<value value="RZCW41EJRPN" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2023-12-15T07:22:33.208914Z" />
|
||||
<targetsSelectedWithDialog>
|
||||
<Target>
|
||||
<type value="QUICK_BOOT_TARGET" />
|
||||
|
||||
@@ -33,6 +33,8 @@ public class BootCompleteReceiver extends BroadcastReceiver {
|
||||
|
||||
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
|
||||
|
||||
AppUtil.updateSeniorOutOfGeofence(context, false);
|
||||
|
||||
// starting over the Location updates service again
|
||||
Intent locationUpdateIntent = new Intent(context, LocationService.class);
|
||||
locationUpdateIntent.setAction(LocationService.ACTION_START_LOCATION_UPDATES);
|
||||
|
||||
@@ -143,6 +143,8 @@ public class NotificationService implements INotificationServiceExtension {
|
||||
Log.d(GEOFENCE_TAG, "DATA RECEIVED WITH NOTIFICATION : Lat/Lng: " + lat + "," + lng + " Radius: " + radius + " message: " + message);
|
||||
|
||||
if (radius >= 0){
|
||||
AppUtil.updateSeniorOutOfGeofence(iNotificationReceivedEvent.getContext(), false);
|
||||
|
||||
AppUtil.updatePatientGeofence(iNotificationReceivedEvent.getContext(),
|
||||
lat+"", lng+"",
|
||||
radius+"", "kms", message);
|
||||
|
||||
@@ -27,7 +27,6 @@ public class PatientLocationUpdatesReceiver extends BroadcastReceiver {
|
||||
|
||||
public static final String LOCATION_REQUEST_TAG = "LOCATION_UPDATE_TAG";
|
||||
public static final String LOCATION_EXTRA_KEY = "com.google.android.location.LOCATION";
|
||||
public static final int LOCATION_UPDATES_REQUEST_CODE = 1010;
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
|
||||
Reference in New Issue
Block a user