mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2024-11-23 06:19:47 +00:00
fix_memory_level_call
Signed-off-by: chenzhuo <chenzhuo84@huawei.com>
This commit is contained in:
parent
69adf9cbb7
commit
0105f1bbbc
@ -22,4 +22,8 @@ export default class MainAbilityStage extends AbilityStage {
|
|||||||
onCreate() {
|
onCreate() {
|
||||||
Log.showInfo(TAG, "onCreate")
|
Log.showInfo(TAG, "onCreate")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMemoryLevel(level): void {
|
||||||
|
Log.showInfo(TAG, 'onMemoryLevel, level:' + JSON.stringify(level))
|
||||||
|
}
|
||||||
}
|
}
|
@ -126,6 +126,10 @@ class ServiceExtAbility extends ServiceExtension {
|
|||||||
Log.showInfo(TAG, 'api8New onDestroy');
|
Log.showInfo(TAG, 'api8New onDestroy');
|
||||||
sTimeManager.release()
|
sTimeManager.release()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMemoryLevel(level): void {
|
||||||
|
Log.showInfo(TAG, 'onMemoryLevel, level:' + JSON.stringify(level))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ServiceExtAbility
|
export default ServiceExtAbility
|
@ -14,9 +14,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import AbilityStage from "@ohos.app.ability.AbilityStage"
|
import AbilityStage from "@ohos.app.ability.AbilityStage"
|
||||||
|
import {Log} from '@ohos/common'
|
||||||
|
|
||||||
|
const TAG = "ScreenLock-MainAbilityStage"
|
||||||
|
|
||||||
export default class MyAbilityStage extends AbilityStage {
|
export default class MyAbilityStage extends AbilityStage {
|
||||||
onCreate() {
|
onCreate() {
|
||||||
console.log("[Demo] MyAbilityStage onCreate")
|
console.log("[Demo] MyAbilityStage onCreate")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMemoryLevel(level): void {
|
||||||
|
Log.showInfo(TAG, 'onMemoryLevel, level:' + JSON.stringify(level))
|
||||||
|
}
|
||||||
}
|
}
|
@ -80,6 +80,10 @@ class ServiceExtAbility extends ServiceExtension {
|
|||||||
sTimeManager.release()
|
sTimeManager.release()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMemoryLevel(level): void {
|
||||||
|
Log.showInfo(TAG, 'onMemoryLevel, level:' + JSON.stringify(level))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ServiceExtAbility
|
export default ServiceExtAbility
|
Loading…
Reference in New Issue
Block a user