Infeasible
Status Update
Comments
vi...@google.com <vi...@google.com> #2
I see same issue and have been debugging it.
NOTE: It DOES NOT happen if not using support package, but use android level 14/15 library. I believe Honeycomb works well too.
My current workaround is to provide my own DialogFragment.show() method, like below:
public int show(FragmentTransaction transaction, String tag) {
return show(transaction, tag, false);
}
public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
transaction.add(this, tag);
mRemoved = false;
mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
return mBackStackId;
}
NOTE: It DOES NOT happen if not using support package, but use android level 14/15 library. I believe Honeycomb works well too.
My current workaround is to provide my own DialogFragment.show() method, like below:
public int show(FragmentTransaction transaction, String tag) {
return show(transaction, tag, false);
}
public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
transaction.add(this, tag);
mRemoved = false;
mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
return mBackStackId;
}
vi...@google.com <vi...@google.com> #3
[Comment deleted]
vi...@google.com <vi...@google.com> #4
But Google pls fix this issue, as the expected behaviors must be consistent with ICS DialogFragment + FragmentManager and support package DialogFragment + FragmentManager.
It happens with both Support Package v4 r6 and v13 r6.
It happens with both Support Package v4 r6 and v13 r6.
fa...@gmail.com <fa...@gmail.com> #5
Comment has been deleted.
Description
in Samsung A54 Android 14 start getting location from FusedLocationProvider with the following code:
FusedLocationProviderClient fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);
LocationRequest locationRequest = LocationRequest.create();
locationRequest.setInterval(locationIntervalTime);
locationRequest.setFastestInterval(locationFastestIntervalTime);
locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
locationCallback = new LocationCallback() {
@Override
public void onLocationResult(LocationResult locationResult) {
try {
if (locationResult == null) {
return;
}
List<Location> locations = locationResult.getLocations();
Location bestLocation = locations.get(0);
for (Location location : locations) {
if (location.getAccuracy() > bestLocation.getAccuracy()) {
bestLocation = location;
}
}
onNewFusedLocationReceived();
} catch (Exception e) {
e.printStackTrace();
OldEventLogger.captureExceptionEvent(e);
}
}
@Override
public void onLocationAvailability(LocationAvailability locationAvailability) {
super.onLocationAvailability(locationAvailability);
}
};
fusedLocationClient.requestLocationUpdates(locationRequest, locationCallback, null);
for location services I use the following version: 'com.google.android.gms:play-services-location:18.0.0'
What happened:
the fused location provider returns a location every 5 seconds and the location is the old location of device! I also checked the LocationManager's locations. The LocationManager returns every one second and they are locating the real time location of the device.
What correct behaviour should be:
the FusedLocationProvider should return the real time location of the device as LocationManager does.
the location logs can be found here: