,
This commit is contained in:
6
.idea/deploymentTargetDropDown.xml
generated
6
.idea/deploymentTargetDropDown.xml
generated
@@ -6,13 +6,13 @@
|
||||
<type value="RUNNING_DEVICE_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="SERIAL_NUMBER" />
|
||||
<value value="RZCW41EJRPN" />
|
||||
<type value="VIRTUAL_DEVICE_PATH" />
|
||||
<value value="$USER_HOME$/.android/avd/6.7_Horizontal_Fold-in_API_34.avd" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2023-11-30T14:15:44.728984Z" />
|
||||
<timeTargetWasSelectedWithDropDown value="2023-12-01T10:15:23.925877Z" />
|
||||
<targetsSelectedWithDialog>
|
||||
<Target>
|
||||
<type value="QUICK_BOOT_TARGET" />
|
||||
|
||||
@@ -169,7 +169,7 @@ public class CgGeoFencingActivity extends AppCompatActivity implements OnMapRead
|
||||
SocketHelper.getInstance().removeLocationUpdateListener(careGiverData.patientId + "");
|
||||
}
|
||||
|
||||
SocketHelper.getInstance().closeConnection();
|
||||
// SocketHelper.getInstance().closeConnection();
|
||||
}
|
||||
|
||||
private void establishSocketConnection() {
|
||||
|
||||
@@ -29,6 +29,8 @@ public class LocationService extends Service implements LocationClient.DefaultLo
|
||||
|
||||
public static final int LOCATION_INTERVAL_BASE_TIME = 25 * 1000;
|
||||
|
||||
private static final int LOCATION_UPDATES_NOTIFICATION_ID = 112;
|
||||
|
||||
private DefaultLocationClient locationClient;
|
||||
|
||||
@Override
|
||||
@@ -83,8 +85,8 @@ public class LocationService extends Service implements LocationClient.DefaultLo
|
||||
// do nothing
|
||||
}
|
||||
|
||||
startForeground(1, notification);
|
||||
notificationManager.notify(1, notification);
|
||||
startForeground(LOCATION_UPDATES_NOTIFICATION_ID, notification);
|
||||
notificationManager.notify(LOCATION_UPDATES_NOTIFICATION_ID, notification);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -114,12 +114,6 @@ public class DashBoardActivity extends AppCompatActivity implements CgHomeContra
|
||||
super.attachBaseContext(newBase);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
SocketHelper.getInstance().closeConnection();
|
||||
}
|
||||
|
||||
private void setGeofenceAndLocationUpdates() {
|
||||
// retrieving geofence
|
||||
viewModel.getGeoFenceDetails(AppUtil.getPatientUid(this) + "",
|
||||
|
||||
Reference in New Issue
Block a user