mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-02 12:29:44 +00:00
!40738 bugfix cj swiper enabled
Merge pull request !40738 from Ad0nis/bugfix_enabled_5.0
This commit is contained in:
commit
0a8bd2dc1d
@ -35,6 +35,7 @@
|
||||
#include "core/components/text/text_component.h"
|
||||
#include "core/components/theme/theme_manager.h"
|
||||
#include "core/components_ng/base/view_abstract.h"
|
||||
#include "core/components_ng/base/view_abstract_model.h"
|
||||
#include "core/components_ng/base/view_stack_processor.h"
|
||||
#include "core/components_v2/extensions/events/on_area_change_extension.h"
|
||||
#include "core/gestures/long_press_gesture.h"
|
||||
@ -60,4 +61,9 @@ RefPtr<ThemeConstants> ViewAbstract::GetThemeConstants()
|
||||
return themeManager->GetThemeConstants();
|
||||
}
|
||||
|
||||
void ViewAbstract::CjEnabled(bool enabled)
|
||||
{
|
||||
ViewAbstractModel::GetInstance()->SetEnabled(enabled);
|
||||
}
|
||||
|
||||
} // namespace OHOS::Ace::Framework
|
||||
|
@ -90,6 +90,7 @@ public:
|
||||
}
|
||||
|
||||
static RefPtr<ThemeConstants> GetThemeConstants();
|
||||
static void CjEnabled(bool enabled);
|
||||
|
||||
};
|
||||
} // namespace OHOS::Ace::Framework
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <cinttypes>
|
||||
|
||||
#include "bridge/cj_frontend/cppview/swiper_controller.h"
|
||||
#include "bridge/cj_frontend/cppview/view_abstract.h"
|
||||
#include "cj_lambda.h"
|
||||
#include "bridge/cj_frontend/interfaces/cj_ffi/utils.h"
|
||||
#include "bridge/common/utils/utils.h"
|
||||
@ -166,6 +167,7 @@ void FfiOHOSAceFrameworkSwiperSetCachedCount(int32_t cachedCount)
|
||||
|
||||
void FfiOHOSAceFrameworkSwiperSetEnabled(bool value)
|
||||
{
|
||||
ViewAbstract::CjEnabled(value);
|
||||
SwiperModel::GetInstance()->SetEnabled(value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user