mirror of
https://gitee.com/openharmony/applications_mms
synced 2024-11-26 17:30:42 +00:00
修改 device type
Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
parent
da46bdbace
commit
ffddd7a4c7
@ -18,7 +18,6 @@ import HiLog from './HiLog';
|
||||
const TAG = 'DeviceUtil';
|
||||
|
||||
export default class DeviceUtil {
|
||||
private static readonly DEVICE_TYPE = deviceInfo.deviceType;
|
||||
constructor() {
|
||||
}
|
||||
|
||||
@ -32,13 +31,9 @@ export default class DeviceUtil {
|
||||
* liteWearable:Lightweight intelligent wearable
|
||||
* smartVision:Smart Vision Devices
|
||||
*/
|
||||
static getDeviceType(): string {
|
||||
HiLog.i(TAG, 'deviceType is ' + this.DEVICE_TYPE)
|
||||
return this.DEVICE_TYPE;
|
||||
}
|
||||
|
||||
static isTablet(): boolean{
|
||||
let deviceType = DeviceUtil.getDeviceType()
|
||||
return deviceType === 'tablet';
|
||||
let curBp = AppStorage.get('curBp');
|
||||
return curBp === 'tablet';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user