mirror of
https://gitee.com/openharmony/applications_permission_manager
synced 2024-11-26 20:50:48 +00:00
调整按钮顺序
Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
parent
71f5593459
commit
ee0e054203
@ -213,6 +213,11 @@ struct mediaDocumentItem {
|
||||
);
|
||||
} else if (this.currentGroup == 'LOCATION') {
|
||||
this.selected = this.status ? Constants.PERMISSION_BAN : Constants.PERMISSION_ALLOWED_ONLY_DURING_USE;
|
||||
if (this.permissions.includes(BACKGROUND_LOCATION_PERMISSION)) {
|
||||
this.mediaDocListItem.push(
|
||||
new MediaDocObj($r('app.string.always_allow'), this.permissions, Constants.PERMISSION_ALLOW)
|
||||
);
|
||||
}
|
||||
if (this.permissions.includes(FUZZY_LOCATION_PERMISSION)) {
|
||||
this.mediaDocListItem.push(
|
||||
new MediaDocObj($r('app.string.allowed_only_during_use'), [FUZZY_LOCATION_PERMISSION], Constants.PERMISSION_ALLOWED_ONLY_DURING_USE)
|
||||
@ -220,11 +225,6 @@ struct mediaDocumentItem {
|
||||
} else {
|
||||
this.noForeground = true;
|
||||
}
|
||||
if (this.permissions.includes(BACKGROUND_LOCATION_PERMISSION)) {
|
||||
this.mediaDocListItem.push(
|
||||
new MediaDocObj($r('app.string.always_allow'), this.permissions, Constants.PERMISSION_ALLOW)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
this.mediaDocListItem.push(
|
||||
new MediaDocObj($r('app.string.allow'), this.permissions, Constants.PERMISSION_ALLOW)
|
||||
|
Loading…
Reference in New Issue
Block a user