Merge "MTP: Update language to comply with Android's inclusive language guidance" am: 86b6f66d9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382396 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ibf8efbd06b6839f8922cc2415e1d13ddc0769b25
This commit is contained in:
@@ -958,7 +958,7 @@ public class MtpStorageManager {
|
|||||||
MtpObject parent = obj.getParent();
|
MtpObject parent = obj.getParent();
|
||||||
MtpObject oldObj = parent.getChild(oldName);
|
MtpObject oldObj = parent.getChild(oldName);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
// If the rename failed, we want oldObj to be the original and obj to be the dummy.
|
// If the rename failed, we want oldObj to be the original and obj to be the stand-in.
|
||||||
// Switch the objects, except for their name and state.
|
// Switch the objects, except for their name and state.
|
||||||
MtpObject temp = oldObj;
|
MtpObject temp = oldObj;
|
||||||
MtpObjectState oldState = oldObj.getState();
|
MtpObjectState oldState = oldObj.getState();
|
||||||
@@ -1034,7 +1034,7 @@ public class MtpStorageManager {
|
|||||||
return generalBeginRemoveObject(obj, MtpOperation.RENAME)
|
return generalBeginRemoveObject(obj, MtpOperation.RENAME)
|
||||||
&& generalBeginCopyObject(newObj, false);
|
&& generalBeginCopyObject(newObj, false);
|
||||||
}
|
}
|
||||||
// Move obj to new parent, create a dummy object in the old parent.
|
// Move obj to new parent, create a fake object in the old parent.
|
||||||
MtpObject oldObj = obj.copy(false);
|
MtpObject oldObj = obj.copy(false);
|
||||||
obj.setParent(newParent);
|
obj.setParent(newParent);
|
||||||
oldObj.getParent().addChild(oldObj);
|
oldObj.getParent().addChild(oldObj);
|
||||||
@@ -1063,7 +1063,7 @@ public class MtpStorageManager {
|
|||||||
return generalEndCopyObject(newObj, success, true) && ret;
|
return generalEndCopyObject(newObj, success, true) && ret;
|
||||||
}
|
}
|
||||||
if (!success) {
|
if (!success) {
|
||||||
// If the rename failed, we want oldObj to be the original and obj to be the dummy.
|
// If the rename failed, we want oldObj to be the original and obj to be the stand-in.
|
||||||
// Switch the objects, except for their parent and state.
|
// Switch the objects, except for their parent and state.
|
||||||
MtpObject temp = oldObj;
|
MtpObject temp = oldObj;
|
||||||
MtpObjectState oldState = oldObj.getState();
|
MtpObjectState oldState = oldObj.getState();
|
||||||
|
|||||||
Reference in New Issue
Block a user