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

Commit

Permalink
[WEEX-565][Android] do not set view's id if there is a id in this view (
Browse files Browse the repository at this point in the history
#1436)

Don't set view's id if there is a id in this view

Bug: WEEX-565
  • Loading branch information
Darin726 authored and YorkShen committed Aug 15, 2018
1 parent bf1cd32 commit 5ab4397
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
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

0 comments on commit 5ab4397

Please sign in to comment.