Skip to content

Commit

Permalink
fix: remove unfold call in android-shared-device
Browse files Browse the repository at this point in the history
  • Loading branch information
yowpark committed Nov 24, 2023
1 parent 24db45e commit b403df3
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,6 @@ export class AndroidSharedDeviceService implements Zombieable {
this.printable.error(`AndroidSharedDeviceService.revive.setGboardAsDefaultKeyboard failed.`, { serial, error: errorify(e) });
});

await this.checkSetup(`AndroidSharedDeviceService.setup.unfold`, this.unfold(channel)).catch((e) => {
this.printable.error(`AndroidSharedDeviceService.revive.unfold failed.`, { serial, error: errorify(e) });
});

await this.checkSetup(`AndroidSharedDeviceService.setup.mute`, this.mute()).catch((e) => {
this.printable.error(`AndroidSharedDeviceService.revive.mute failed.`, { serial, error: errorify(e) });
});
Expand Down Expand Up @@ -558,17 +554,6 @@ export class AndroidSharedDeviceService implements Zombieable {
await this.appiumAdb.setIME(imeId);
}

private async unfold(channel: AndroidChannel): Promise<void> {
const foldStatus = await channel.getFoldStatus();
if (!foldStatus.isFoldable) {
return;
}
if (!foldStatus.isFolded) {
return;
}
await channel.fold(false);
}

private async mute(): Promise<void> {
const { adb } = this;
await adb.keyevent(DeviceControlKeycode.DEVICE_CONTROL_KEYCODE_VOLUME_UP);
Expand Down

0 comments on commit b403df3

Please sign in to comment.