mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-27 01:01:06 +00:00
update feature/browser/src/main/ets/default/view/photo/RenameMenuOperation.ts.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
19c7aa5e74
commit
99496db207
@ -23,6 +23,7 @@ import {
|
||||
MenuContext,
|
||||
UiUtil
|
||||
} from '@ohos/common';
|
||||
import userFileManager from '@ohos.filemanagement.userFileManager';
|
||||
|
||||
const TAG: string = 'browser_RenameMenuOperation';
|
||||
|
||||
@ -74,7 +75,8 @@ export class RenameMenuOperation implements MenuOperation, MenuOperationCallback
|
||||
let fileAsset = await dataImpl.getDataByUri(uri);
|
||||
operationImpl.setName(fileAsset, name);
|
||||
await operationImpl.change(fileAsset);
|
||||
return { title: fileAsset.title, displayName: fileAsset.displayName };
|
||||
return { title: String(fileAsset.get(userFileManager.ImageVideoKey.TITLE.toString())),
|
||||
displayName: fileAsset.displayName };
|
||||
}
|
||||
|
||||
async confirmCallback(title: string): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user