Skip to content

Commit 3758807

Browse files
sideveshandyholmes
authored andcommitted
Set tablet device type for 30, 31(detachable) and laptop for 31(convertible)
1 parent 0a59c4d commit 3758807

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/service/core.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export function _getDeviceType() {
2020

2121
type = Number(new TextDecoder().decode(type));
2222

23-
if ([8, 9, 10, 14].includes(type))
23+
if ([30, 32].includes(type))
24+
return 'tablet';
25+
26+
if ([8, 9, 10, 14, 31].includes(type))
2427
return 'laptop';
2528

2629
return 'desktop';
@@ -691,4 +694,3 @@ export const Transfer = GObject.registerClass({
691694
this._cancellable.cancel();
692695
}
693696
});
694-

0 commit comments

Comments
 (0)