mirror of
https://github.com/openharmony/applications_notes.git
synced 2026-07-19 13:16:40 -04:00
@@ -200,7 +200,7 @@ export struct NoteContentCompPortrait {
|
||||
"ohos.permission.READ_MEDIA",
|
||||
"ohos.permission.WRITE_MEDIA",
|
||||
]
|
||||
let context: any = getContext(this);
|
||||
let context: any = AppStorage.Get("context");
|
||||
let AtManager = abilityAccessCtrl.createAtManager();
|
||||
// @ts-ignore
|
||||
await AtManager.requestPermissionsFromUser(context, permissionList).then((data) => {
|
||||
|
||||
@@ -29,6 +29,7 @@ export default class MainAbility extends UIAbility {
|
||||
private Tag = "MainAbility_Tablet"
|
||||
|
||||
onCreate(want, launchParam) {
|
||||
AppStorage.SetOrCreate('context', this.context)
|
||||
// @ts-ignore
|
||||
window.getLastWindow(this.context, (err, data) => {
|
||||
if (data && data.getWindowProperties()) {
|
||||
|
||||
Reference in New Issue
Block a user