fix(close button): Set correct content description

This closes #196
This commit is contained in:
Philippe Morier 2016-10-28 15:21:08 +01:00 committed by Julio César
parent 5cbbc8e26e
commit 1b4859c175

View File

@ -688,7 +688,7 @@ public class InAppBrowser extends CordovaPlugin {
RelativeLayout.LayoutParams closeLayoutParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT);
closeLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
close.setLayoutParams(closeLayoutParams);
forward.setContentDescription("Close Button");
close.setContentDescription("Close Button");
close.setId(Integer.valueOf(5));
int closeResId = activityRes.getIdentifier("ic_action_remove", "drawable", cordova.getActivity().getPackageName());
Drawable closeIcon = activityRes.getDrawable(closeResId);