api-impl: misc APIs for WhatsApp media chooser Activities

This commit is contained in:
Julian Winkler
2025-04-23 18:21:19 +02:00
parent 69b742263a
commit e011092025
19 changed files with 123 additions and 26 deletions

View File

@@ -601,19 +601,19 @@ public class ParcelFileDescriptor implements Closeable {
*
* @see #canDetectErrors()
*/
public int detachFd() { /*
if (mWrapped != null) {
return mWrapped.detachFd();
} else {
if (mClosed) {
throw new IllegalStateException("Already closed");
}
final int fd = getFd();
Parcel.clearFileDescriptor(mFd);
writeCommStatusAndClose(Status.DETACHED, null);
return fd;
}*/
return -1;
public int detachFd() {
if (mWrapped != null) {
return mWrapped.detachFd();
} else {
if (mClosed) {
throw new IllegalStateException("Already closed");
}
final int fd = getFd();
// Parcel.clearFileDescriptor(mFd);
mFd.setInt$(-1);
writeCommStatusAndClose(Status.DETACHED, null);
return fd;
}
}
/**