Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX-565][Android] do not set view's id if there is a id in this view #1436

Merged
merged 1 commit into from Aug 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -1347,7 +1347,8 @@ protected void createViewImpl() {
initView();
}
if (mHost != null) {
mHost.setId(WXViewUtils.generateViewId());
if(mHost.getId() == View.NO_ID)
mHost.setId(WXViewUtils.generateViewId());
if(TextUtils.isEmpty(mHost.getContentDescription()) && WXEnvironment.isApkDebugable()){
mHost.setContentDescription(getRef());
}
Expand Down