You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: misc APIs for WhatsApp media chooser Activities
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user