fix(bin): let DemoMode pass apiLevel to ActivityManager

This commit is contained in:
Simon Chan 2025-09-02 12:46:46 +08:00
parent f596807df1
commit d938ce0bbd
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD

View file

@ -56,9 +56,9 @@ export class DemoMode extends AdbServiceBase {
#am: ActivityManager; #am: ActivityManager;
#settings: Settings; #settings: Settings;
constructor(adb: Adb) { constructor(adb: Adb, apiLevel?: number) {
super(adb); super(adb);
this.#am = new ActivityManager(adb); this.#am = new ActivityManager(adb, apiLevel);
this.#settings = new Settings(adb); this.#settings = new Settings(adb);
} }