mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-20 15:14:04 -04:00
swiper增加tablet设备类型
Signed-off-by: xiexiyun <xiexiyun@huawei.com> Change-Id: I903e314605de06d0ed4236c2ce76d39d6c4b0e98
This commit is contained in:
@@ -56,6 +56,7 @@ void FlutterRenderSwiper::Paint(RenderContext& context, const Offset& offset)
|
||||
return;
|
||||
}
|
||||
if (SystemProperties::GetDeviceType() == DeviceType::PHONE ||
|
||||
SystemProperties::GetDeviceType() == DeviceType::TABLET ||
|
||||
SystemProperties::GetDeviceType() == DeviceType::CAR) {
|
||||
DrawIndicator(context, offset);
|
||||
} else {
|
||||
|
||||
@@ -383,6 +383,7 @@ void RenderSwiper::PerformLayout()
|
||||
|
||||
// layout indicator
|
||||
if (SystemProperties::GetDeviceType() == DeviceType::PHONE ||
|
||||
SystemProperties::GetDeviceType() == DeviceType::TABLET ||
|
||||
SystemProperties::GetDeviceType() == DeviceType::CAR) {
|
||||
LayoutIndicator(swiperIndicatorData_);
|
||||
} else {
|
||||
|
||||
@@ -56,6 +56,7 @@ void RosenRenderSwiper::Paint(RenderContext& context, const Offset& offset)
|
||||
return;
|
||||
}
|
||||
if (SystemProperties::GetDeviceType() == DeviceType::PHONE ||
|
||||
SystemProperties::GetDeviceType() == DeviceType::TABLET ||
|
||||
SystemProperties::GetDeviceType() == DeviceType::CAR) {
|
||||
DrawIndicator(context, offset);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user