mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-27 00:51:07 +00:00
fix compile and codecheck problems
Signed-off-by: Mupceet <laiguizhong@huawei.com>
This commit is contained in:
parent
3b87cfe093
commit
394857422c
@ -1228,11 +1228,11 @@ void AccessibilityConfig::Impl::OnAccessibleAbilityManagerShortkeyTargetChanged(
|
||||
|
||||
void AccessibilityConfig::Impl::InitVar()
|
||||
{
|
||||
if(!serviceProxy_){
|
||||
if (!serviceProxy_) {
|
||||
HILOG_ERROR("AAMS Service is not connected");
|
||||
return;
|
||||
}
|
||||
highContrastText_ = serviceProxy_->GetHighContrastTextState();;
|
||||
highContrastText_ = serviceProxy_->GetHighContrastTextState();
|
||||
invertColor_ = serviceProxy_->GetInvertColorState();
|
||||
animationOff_ = serviceProxy_->GetAnimationOffState();
|
||||
audioMono_ = serviceProxy_->GetAudioMonoState();
|
||||
@ -1247,7 +1247,6 @@ void AccessibilityConfig::Impl::InitVar()
|
||||
audioBalance_ = serviceProxy_->GetAudioBalance();
|
||||
shortkeyTarget_ = serviceProxy_->GetShortkeyTarget();
|
||||
captionProperty_ = serviceProxy_->GetCaptionProperty();
|
||||
|
||||
}
|
||||
} // namespace AccessibilityConfig
|
||||
} // namespace OHOS
|
@ -57,6 +57,7 @@ std::string ConvertWindowTypeToString(OHOS::Accessibility::AccessibilityWindowTy
|
||||
std::string ConvertDaltonizationTypeToString(OHOS::AccessibilityConfig::DALTONIZATION_TYPE type);
|
||||
void ConvertOperationToJS(napi_env env, napi_value result, const OHOS::Accessibility::AccessibleAction& operation);
|
||||
void ConvertGridInfoToJS(napi_env env, napi_value nGrid, const OHOS::Accessibility::GridInfo& grid);
|
||||
void ConvertRangeInfoToJS(napi_env env, napi_value nRangeInfo, const OHOS::Accessibility::RangeInfo& rangeInfo);
|
||||
void ConvertGridItemToJS(napi_env env, napi_value nGridItem, const OHOS::Accessibility::GridItemInfo& gridItem);
|
||||
void ConvertRectToJS(napi_env env, napi_value result, const OHOS::Accessibility::Rect& rect);
|
||||
void ConvertAccessibleAbilityInfosToJS(napi_env env, napi_value& result,
|
||||
|
Loading…
Reference in New Issue
Block a user